public class ChunkCache extends Object implements BlockView, CollisionView
| Modifier and Type | Field and Description |
|---|---|
protected Chunk[][] |
chunks |
protected boolean |
empty |
protected int |
minX |
protected int |
minZ |
protected World |
world |
| Constructor and Description |
|---|
ChunkCache(World world,
BlockPos minPos,
BlockPos maxPos) |
| Modifier and Type | Method and Description |
|---|---|
BlockEntity |
getBlockEntity(BlockPos pos) |
BlockState |
getBlockState(BlockPos pos) |
BlockView |
getExistingChunk(int chunkX,
int chunkZ) |
FluidState |
getFluidState(BlockPos pos) |
WorldBorder |
getWorldBorder() |
private Chunk |
method_22353(int int2,
int int3) |
private Chunk |
method_22354(BlockPos blockPos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPlace, doesNotCollide, doesNotCollide, doesNotCollide, doesNotCollide, getBlockCollisions, getCollisions, getEntityCollisions, intersectsEntities, intersectsEntities, method_27087getHeight, getLuminance, getMaxLightLevel, rayTrace, rayTrace, rayTraceBlockprotected final int minX
protected final int minZ
protected final Chunk[][] chunks
protected boolean empty
protected final World world
private Chunk method_22353(int int2, int int3)
public WorldBorder getWorldBorder()
getWorldBorder in interface CollisionViewpublic BlockView getExistingChunk(int chunkX, int chunkZ)
getExistingChunk in interface CollisionView@Nullable public BlockEntity getBlockEntity(BlockPos pos)
getBlockEntity in interface BlockViewpublic BlockState getBlockState(BlockPos pos)
getBlockState in interface BlockViewpublic FluidState getFluidState(BlockPos pos)
getFluidState in interface BlockView