public class FakeClimateTransformer extends java.lang.Object implements IClimateTransformer
| Modifier and Type | Field and Description |
|---|---|
static FakeClimateTransformer |
INSTANCE |
| 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 |
removeTransformer()
Removes the transformer from the world.
|
void |
setCircular(boolean circular)
Sets the circular state of the transformer.
|
void |
setCurrent(IClimateState state)
Sets the current value of the transformer.
|
void |
setRange(int range)
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.
|
public static final FakeClimateTransformer INSTANCE
public void setCircular(boolean circular)
IClimateTransformersetCircular in interface IClimateTransformerpublic boolean isCircular()
isCircular in interface IClimateTransformerpublic int getRange()
getRange in interface IClimateTransformerpublic void setRange(int range)
IClimateTransformersetRange 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 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 int getArea()
getArea 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 IClimateState getTarget()
getTarget in interface IClimateTransformerpublic IClimateState getCurrent()
getCurrent in interface IClimateTransformerpublic IClimateState getDefault()
getDefault in interface IClimateTransformerIClimateState of the biome in that the transformer is located.public void update()
IClimateTransformerupdate in interface IClimateTransformerpublic void removeTransformer()
IClimateTransformerremoveTransformer in interface IClimateTransformerpublic IClimateHousing getHousing()
getHousing in interface IClimateTransformerpublic IClimateManipulatorBuilder createManipulator(ClimateType type)
IClimateTransformercreateManipulator in interface IClimateTransformerpublic net.minecraft.util.math.BlockPos getCoordinates()
getCoordinates in interface ILocatablepublic net.minecraft.world.World getWorldObj()
getWorldObj in interface ILocatable