public class ClimateTransformer extends java.lang.Object implements IClimateTransformer, IStreamable, INbtReadable, INbtWritable
| Modifier and Type | Field and Description |
|---|---|
protected IClimateHousing |
housing |
| Constructor and Description |
|---|
ClimateTransformer(IClimateHousing housing) |
| Modifier and Type | Method and Description |
|---|---|
IClimateManipulatorBuilder |
createManipulator(ClimateType type)
A helper interface that can be usd to manipulate the state of this logic.
|
int |
getArea() |
float |
getAreaModifier() |
net.minecraft.util.math.BlockPos |
getCoordinates() |
float |
getCostModifier() |
IClimateState |
getCurrent() |
IClimateState |
getDefault() |
IClimateHousing |
getHousing() |
int |
getRange() |
float |
getSpeedModifier() |
IClimateState |
getTarget() |
net.minecraft.world.World |
getWorldObj() |
boolean |
isCircular() |
void |
readData(PacketBufferForestry data) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
removeTransformer()
Removes the transformer from the world.
|
void |
setCircular(boolean value)
Sets the circular state of the transformer.
|
void |
setCurrent(IClimateState state)
Sets the current value of the transformer.
|
void |
setRange(int value)
Sets the range of this transformer.
|
void |
setTarget(IClimateState target)
Sets the targeted state of this transformer.
|
void |
update()
Updates the transformer and adds it to the world at the first time this method gets called.
|
void |
writeData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
protected final IClimateHousing housing
public ClimateTransformer(IClimateHousing housing)
public IClimateHousing getHousing()
getHousing in interface IClimateTransformerpublic void update()
IClimateTransformerupdate in interface IClimateTransformerpublic void removeTransformer()
IClimateTransformerremoveTransformer in interface IClimateTransformerpublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
writeToNBT in interface INbtWritablepublic void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in interface INbtReadablepublic IClimateManipulatorBuilder createManipulator(ClimateType type)
IClimateTransformercreateManipulator in interface IClimateTransformerpublic void writeData(PacketBufferForestry data)
writeData in interface IStreamablepublic void readData(PacketBufferForestry data) throws java.io.IOException
readData in interface IStreamablejava.io.IOExceptionpublic IClimateState getCurrent()
getCurrent in interface IClimateTransformerpublic void setCurrent(IClimateState state)
IClimateTransformer
The state automatically gets clamped between 0.0F and 2.0F and transformed into a immutable IClimateState.
setCurrent in interface IClimateTransformerpublic IClimateState getTarget()
getTarget in interface IClimateTransformerpublic void setTarget(IClimateState target)
IClimateTransformer
The state automatically gets clamped between 0.0F and 2.0F and transformed into a immutable IClimateState.
setTarget in interface IClimateTransformerpublic IClimateState getDefault()
getDefault in interface IClimateTransformerIClimateState of the biome in that the transformer is located.public void setCircular(boolean value)
IClimateTransformersetCircular in interface IClimateTransformerpublic boolean isCircular()
isCircular in interface IClimateTransformerpublic void setRange(int value)
IClimateTransformersetRange in interface IClimateTransformerpublic float getAreaModifier()
getAreaModifier in interface IClimateTransformerIClimateTransformer.getCostModifier() and IClimateTransformer.getSpeedModifier() to multiply the cost and the speed based on the
size of the area that the transformer transforms.public float getCostModifier()
getCostModifier in interface IClimateTransformerIClimateTransformer.getAreaModifier()public float getSpeedModifier()
getSpeedModifier in interface IClimateTransformerIClimateTransformer.getAreaModifier()public int getArea()
getArea in interface IClimateTransformerpublic int getRange()
getRange in interface IClimateTransformerpublic net.minecraft.util.math.BlockPos getCoordinates()
getCoordinates in interface ILocatablepublic net.minecraft.world.World getWorldObj()
getWorldObj in interface ILocatable