public class ChunkCache
extends java.lang.Object
implements net.minecraft.world.ICollisionReader
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.world.chunk.IChunk[][] |
chunks |
protected int |
chunkX |
protected int |
chunkZ |
protected boolean |
empty |
protected net.minecraft.world.World |
world |
| Constructor and Description |
|---|
ChunkCache(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos1,
net.minecraft.util.math.BlockPos pos2) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.tileentity.TileEntity |
getBlockEntity(net.minecraft.util.math.BlockPos pos) |
net.minecraft.block.BlockState |
getBlockState(net.minecraft.util.math.BlockPos pos) |
net.minecraft.world.IBlockReader |
getChunkForCollisions(int chunkX,
int chunkZ) |
java.util.stream.Stream<net.minecraft.util.math.shapes.VoxelShape> |
getEntityCollisions(net.minecraft.entity.Entity p_230318_1_,
net.minecraft.util.math.AxisAlignedBB p_230318_2_,
java.util.function.Predicate<net.minecraft.entity.Entity> p_230318_3_) |
net.minecraft.fluid.FluidState |
getFluidState(net.minecraft.util.math.BlockPos pos) |
net.minecraft.world.border.WorldBorder |
getWorldBorder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final int chunkX
protected final int chunkZ
protected final net.minecraft.world.chunk.IChunk[][] chunks
protected boolean empty
protected final net.minecraft.world.World world
public ChunkCache(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos1,
net.minecraft.util.math.BlockPos pos2)
public net.minecraft.world.border.WorldBorder getWorldBorder()
getWorldBorder in interface net.minecraft.world.ICollisionReaderpublic net.minecraft.world.IBlockReader getChunkForCollisions(int chunkX,
int chunkZ)
getChunkForCollisions in interface net.minecraft.world.ICollisionReaderpublic java.util.stream.Stream<net.minecraft.util.math.shapes.VoxelShape> getEntityCollisions(@Nullable
net.minecraft.entity.Entity p_230318_1_,
net.minecraft.util.math.AxisAlignedBB p_230318_2_,
java.util.function.Predicate<net.minecraft.entity.Entity> p_230318_3_)
getEntityCollisions in interface net.minecraft.world.ICollisionReader@Nullable public net.minecraft.tileentity.TileEntity getBlockEntity(net.minecraft.util.math.BlockPos pos)
getBlockEntity in interface net.minecraft.world.IBlockReaderpublic net.minecraft.block.BlockState getBlockState(net.minecraft.util.math.BlockPos pos)
getBlockState in interface net.minecraft.world.IBlockReaderpublic net.minecraft.fluid.FluidState getFluidState(net.minecraft.util.math.BlockPos pos)
getFluidState in interface net.minecraft.world.IBlockReader