Package mindustry.type
Class Weather
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ctype.UnlockableContent
mindustry.type.Weather
- All Implemented Interfaces:
Comparable<Content>
- Direct Known Subclasses:
MagneticStorm
,ParticleWeather
,RainWeather
,SolarFlare
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo
-
Field Summary
Modifier and TypeFieldDescriptionfloat
Default duration of this weather event in ticks.boolean
float
static final Rand
Global random variable used for rendering.float
float
float
float
boolean
float
boolean
Prov<mindustry.gen.WeatherState>
Fields inherited from class mindustry.ctype.UnlockableContent
alwaysUnlocked, description, details, fullIcon, generateIcons, hideDetails, iconId, inlineDescription, localizedName, selectionSize, stats, techNode, techNodes, uiIcon, unlocked
Fields inherited from class mindustry.ctype.MappableContent
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmindustry.gen.WeatherState
create()
mindustry.gen.WeatherState
create
(float intensity) mindustry.gen.WeatherState
create
(float intensity, float duration) static void
createWeather
(Weather weather, float intensity, float duration, float windX, float windY) static void
drawNoise
(Texture noise, Color color, float noisescl, float opacity, float baseSpeed, float intensity, float vwindx, float vwindy, float offset) static void
drawNoiseLayers
(Texture noise, Color color, float noisescl, float opacity, float baseSpeed, float intensity, float vwindx, float vwindy, int layers, float layerSpeedM, float layerAlphaM, float layerSclM, float layerColorM) void
drawOver
(mindustry.gen.WeatherState state) static void
drawParticles
(TextureRegion region, Color color, float sizeMin, float sizeMax, float density, float intensity, float opacity, float windx, float windy, float minAlpha, float maxAlpha, float sinSclMin, float sinSclMax, float sinMagMin, float sinMagMax, boolean randomParticleRotation) static void
drawRain
(float sizeMin, float sizeMax, float xspeed, float yspeed, float density, float intensity, float stroke, Color color) static void
drawSplashes
(TextureRegion[] splashes, float padding, float density, float intensity, float opacity, float timeScale, float stroke, Color color, Liquid splasher) void
drawUnder
(mindustry.gen.WeatherState state) Returns the type name of this piece of content.mindustry.gen.WeatherState
instance()
boolean
isActive()
boolean
isHidden()
Whether this content is always hidden in the content database dialog.void
remove()
void
update
(mindustry.gen.WeatherState state) void
updateEffect
(mindustry.gen.WeatherState state) Methods inherited from class mindustry.ctype.UnlockableContent
checkStats, clearUnlock, createIcons, displayDescription, displayExtra, emoji, getDependencies, getLogicId, hasEmoji, loadIcon, locked, logicVisible, makeOutline, makeOutline, makeOutline, onUnlock, quietUnlock, researchRequirements, setStats, showUnlock, unlock, unlocked, unlockedNow, unlockedNowHost
Methods inherited from class mindustry.ctype.MappableContent
toString
-
Field Details
-
rand
Global random variable used for rendering. -
duration
public float durationDefault duration of this weather event in ticks. -
opacityMultiplier
public float opacityMultiplier -
attrs
-
sound
-
soundVol
public float soundVol -
soundVolMin
public float soundVolMin -
soundVolOscMag
public float soundVolOscMag -
soundVolOscScl
public float soundVolOscScl -
type
-
status
-
statusDuration
public float statusDuration -
statusAir
public boolean statusAir -
statusGround
public boolean statusGround
-
-
Constructor Details
-
Weather
-
Weather
-
-
Method Details
-
create
public mindustry.gen.WeatherState create() -
create
public mindustry.gen.WeatherState create(float intensity) -
create
public mindustry.gen.WeatherState create(float intensity, float duration) -
instance
-
isActive
public boolean isActive() -
remove
public void remove() -
update
public void update(mindustry.gen.WeatherState state) -
updateEffect
public void updateEffect(mindustry.gen.WeatherState state) -
drawOver
public void drawOver(mindustry.gen.WeatherState state) -
drawUnder
public void drawUnder(mindustry.gen.WeatherState state) -
drawParticles
public static void drawParticles(TextureRegion region, Color color, float sizeMin, float sizeMax, float density, float intensity, float opacity, float windx, float windy, float minAlpha, float maxAlpha, float sinSclMin, float sinSclMax, float sinMagMin, float sinMagMax, boolean randomParticleRotation) -
drawRain
public static void drawRain(float sizeMin, float sizeMax, float xspeed, float yspeed, float density, float intensity, float stroke, Color color) -
drawSplashes
public static void drawSplashes(TextureRegion[] splashes, float padding, float density, float intensity, float opacity, float timeScale, float stroke, Color color, Liquid splasher) -
drawNoiseLayers
-
drawNoise
-
isHidden
public boolean isHidden()Description copied from class:UnlockableContent
Whether this content is always hidden in the content database dialog.- Overrides:
isHidden
in classUnlockableContent
-
getContentType
Description copied from class:Content
Returns the type name of this piece of content. This should return the same value for all instances of this content type.- Specified by:
getContentType
in classContent
-
createWeather
public static void createWeather(Weather weather, float intensity, float duration, float windX, float windY)
-