public interface IClimateStateHelper
IClimateStates or to get constant and immutable IClimateStates like
zero(), min(), max() or absent().| Modifier and Type | Method and Description |
|---|---|
IClimateState |
absent() |
IClimateState |
checkState(IClimateState climateState)
Checks if the given state is valid and returns the absent state if the given state is not valid.
|
IClimateState |
clamp(IClimateState climateState) |
IClimateState |
create(ClimateType type,
float value)
Creates a state that contains the given value of the given type and 0.0F as the value of the other type.
|
IClimateState |
create(float temperature,
float humidity)
Creates a climate state of the given two climate values.
|
IClimateState |
create(float temperature,
float humidity,
boolean mutable)
Creates a climate state of the given two climate values.
|
IClimateState |
create(IClimateState climateState)
Creates a copy of the given state.
|
IClimateState |
create(IClimateState climateState,
boolean mutable)
Creates a copy of the given state.
|
IClimateState |
create(net.minecraft.nbt.NBTTagCompound compound)
Creates a state based on the data that the given compound contains.
|
IClimateState |
create(net.minecraft.nbt.NBTTagCompound compound,
boolean mutable)
Creates a state based on the data that the given compound contains.
|
IClimateState |
max() |
IClimateState |
min() |
IClimateState |
mutableZero() |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound,
IClimateState state)
Writes the data of the given state to the given compound.
|
IClimateState |
zero() |
IClimateState create(float temperature, float humidity)
temperature - The temperature value of the new state.humidity - The humidity value of the new state.IClimateState create(float temperature, float humidity, boolean mutable)
temperature - The temperature value of the new state.humidity - The humidity value of the new state.mutable - If the new state should be mutable.IClimateState create(IClimateState climateState)
climateState - The state that should be copied.IClimateState create(IClimateState climateState, boolean mutable)
climateState - The state that should be copied.mutable - If the copy should be mutable.IClimateState create(ClimateType type, float value)
type - The type of the given value.value - The value of the given type.IClimateState create(net.minecraft.nbt.NBTTagCompound compound)
compound - The compound that contains the data.IClimateState create(net.minecraft.nbt.NBTTagCompound compound, boolean mutable)
compound - The compound that contains the data.mutable - If the copy should be mutable.net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound compound,
IClimateState state)
compound - The compound that the data will be writen to.state - The state that contains the data.IClimateState checkState(IClimateState climateState)
IClimateState clamp(IClimateState climateState)
IClimateState absent()
IClimateState min()
IClimateState.IClimateState max()
IClimateState.IClimateState zero()
IClimateState.getHumidity() and
IClimateState.getTemperature() are zero.IClimateState mutableZero()
IClimateState.getHumidity() and
IClimateState.getTemperature() are zero.