public interface IWorldClimateHolder
IClimateTransformers and to get the current climate
state at a given position.
You can use IClimateRoot.getWorldClimate(World) to get the instance of this interface that provides the
information about a given world.
| 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 |
removeTransformer(IClimateTransformer transformer)
Removes the transformer from
|
void |
removeTransformer(long chunkPos,
long transformerPos)
Removes the transformer from the chunk at the given chunkPos.
|
void |
updateTransformer(IClimateTransformer transformer)
Updates the cached climate state.
|
IClimateState getClimate(long position)
int getRange(long position)
boolean isCircular(long position)
void addTransformer(long chunkPos,
long transformerPos)
void removeTransformer(long chunkPos,
long transformerPos)
void updateTransformer(IClimateTransformer transformer)
void removeTransformer(IClimateTransformer transformer)
IClimateState getState(net.minecraft.util.math.BlockPos pos)
long getLastUpdate(net.minecraft.util.math.BlockPos pos)
World.getTotalWorldTime() at the moment the last transformer changed its
IClimateTransformer.getCurrent() state or a IClimateTransformer has been removed or added to the
holder.long getLastUpdate(long chunkPos)
boolean isPositionInTransformerRange(long position,
Position2D blockPos)
Position2D is in the range of the transformer at the given position.boolean hasTransformers(net.minecraft.util.math.BlockPos pos)
BlockPos has any transformers.