public class WorldClimateHolder extends net.minecraft.world.storage.WorldSavedData implements IWorldClimateHolder
| Constructor and Description |
|---|
WorldClimateHolder(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransformer(long chunkPos,
long transformerPos)
Adds the transformer to the chunk at the given chunkPos.
|
IClimateState |
getClimate(long position) |
long |
getLastUpdate(net.minecraft.util.math.BlockPos pos) |
long |
getLastUpdate(long chunkPos) |
int |
getRange(long position) |
IClimateState |
getState(net.minecraft.util.math.BlockPos pos) |
boolean |
hasTransformers(net.minecraft.util.math.BlockPos pos) |
boolean |
isCircular(long position) |
boolean |
isPositionInTransformerRange(long position,
Position2D blockPos) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
removeTransformer(IClimateTransformer transformer)
Removes the transformer from
|
void |
removeTransformer(long chunkPos,
long transformerPos)
Removes the transformer from the chunk at the given chunkPos.
|
void |
setWorld(net.minecraft.world.World world) |
void |
updateTransformer(IClimateTransformer transformer)
Updates the cached climate state.
|
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound compound) |
public void setWorld(@Nullable
net.minecraft.world.World world)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
readFromNBT in class net.minecraft.world.storage.WorldSavedDatapublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound compound)
writeToNBT in class net.minecraft.world.storage.WorldSavedDatapublic IClimateState getClimate(long position)
getClimate in interface IWorldClimateHolderpublic void addTransformer(long chunkPos,
long transformerPos)
IWorldClimateHolderaddTransformer in interface IWorldClimateHolderpublic void removeTransformer(long chunkPos,
long transformerPos)
IWorldClimateHolderremoveTransformer in interface IWorldClimateHolderpublic void updateTransformer(IClimateTransformer transformer)
IWorldClimateHolderupdateTransformer in interface IWorldClimateHolderpublic void removeTransformer(IClimateTransformer transformer)
IWorldClimateHolderremoveTransformer in interface IWorldClimateHolderpublic int getRange(long position)
getRange in interface IWorldClimateHolderpublic boolean isCircular(long position)
isCircular in interface IWorldClimateHolderpublic boolean isPositionInTransformerRange(long position,
Position2D blockPos)
isPositionInTransformerRange in interface IWorldClimateHolderPosition2D is in the range of the transformer at the given position.public IClimateState getState(net.minecraft.util.math.BlockPos pos)
getState in interface IWorldClimateHolderpublic boolean hasTransformers(net.minecraft.util.math.BlockPos pos)
hasTransformers in interface IWorldClimateHolderBlockPos has any transformers.public long getLastUpdate(net.minecraft.util.math.BlockPos pos)
getLastUpdate in interface IWorldClimateHolderWorld.getTotalWorldTime() at the moment the last transformer changed its
IClimateTransformer.getCurrent() state or a IClimateTransformer has been removed or added to the
holder.public long getLastUpdate(long chunkPos)
getLastUpdate in interface IWorldClimateHolder