public class ChunkBlockHandler extends java.lang.Object implements IChunkBlockHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkBlockHandler.ChunkProcedure |
| Constructor and Description |
|---|
ChunkBlockHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(IChunkBlockHandler handler) |
void |
callProcedure(net.minecraft.world.chunk.Chunk chunk,
ChunkBlockHandler.ChunkProcedure procedure)
Call a
ChunkBlockHandler.ChunkProcedure this specified Chunk. |
static ChunkBlockHandler |
get() |
static java.util.List<net.minecraft.world.chunk.Chunk> |
getAffectedChunks(net.minecraft.world.World world,
net.minecraft.util.AxisAlignedBB... aabbs) |
java.util.List<net.minecraft.world.chunk.Chunk> |
getAffectedChunks(net.minecraft.world.World world,
int x,
int z,
int distance)
Gets the chunks inside distance from coordinates.
|
void |
onChunkWatched(net.minecraftforge.event.world.ChunkWatchEvent.Watch event)
Server only.
|
void |
onDataLoad(net.minecraftforge.event.world.ChunkDataEvent.Load event)
On data load.
|
void |
onDataSave(net.minecraftforge.event.world.ChunkDataEvent.Save event) |
void |
setCoords(int chunkX,
int chunkZ,
long[] coords)
Client only.
|
boolean |
updateCoordinates(net.minecraft.world.chunk.Chunk chunk,
BlockPos pos,
net.minecraft.block.Block old,
net.minecraft.block.Block block) |
boolean |
updateCoordinates(net.minecraft.world.chunk.Chunk chunk,
int x,
int y,
int z,
net.minecraft.block.Block old,
net.minecraft.block.Block block)
Update chunk coordinates.
|
public void callProcedure(net.minecraft.world.chunk.Chunk chunk,
ChunkBlockHandler.ChunkProcedure procedure)
ChunkBlockHandler.ChunkProcedure this specified Chunk.chunk - the chunkprocedure - the procedurepublic void addHandler(IChunkBlockHandler handler)
public boolean updateCoordinates(net.minecraft.world.chunk.Chunk chunk,
int x,
int y,
int z,
net.minecraft.block.Block old,
net.minecraft.block.Block block)
Chunk.setBlockIDWithMetadata(int, int, int, Block, int) Notifies all IBlockListener for that
chunk.chunk - the chunkx - the xy - the yz - the zold - the oldblock - the blockpublic boolean updateCoordinates(net.minecraft.world.chunk.Chunk chunk,
BlockPos pos,
net.minecraft.block.Block old,
net.minecraft.block.Block block)
updateCoordinates in interface IChunkBlockHandlerpublic void onDataLoad(net.minecraftforge.event.world.ChunkDataEvent.Load event)
event - the eventpublic void onDataSave(net.minecraftforge.event.world.ChunkDataEvent.Save event)
public void onChunkWatched(net.minecraftforge.event.world.ChunkWatchEvent.Watch event)
event - the eventpublic void setCoords(int chunkX,
int chunkZ,
long[] coords)
ChunkBlockMessage.chunkX - the chunk xchunkZ - the chunk zcoords - the coordspublic java.util.List<net.minecraft.world.chunk.Chunk> getAffectedChunks(net.minecraft.world.World world,
int x,
int z,
int distance)
world - the worldx - the xz - the zdistance - the sizepublic static java.util.List<net.minecraft.world.chunk.Chunk> getAffectedChunks(net.minecraft.world.World world,
net.minecraft.util.AxisAlignedBB... aabbs)
public static ChunkBlockHandler get()