public class Region extends java.lang.Object implements IBlockReader, ICollisionReader
Modifier and Type | Field and Description |
---|---|
protected boolean |
allEmpty |
protected int |
centerX |
protected int |
centerZ |
protected IChunk[][] |
chunks |
protected World |
level |
Constructor and Description |
---|
Region(World p_i50004_1_,
BlockPos p_i50004_2_,
BlockPos p_i50004_3_) |
Modifier and Type | Method and Description |
---|---|
TileEntity |
getBlockEntity(BlockPos p_175625_1_) |
BlockState |
getBlockState(BlockPos p_180495_1_) |
private IChunk |
getChunk(BlockPos p_226703_1_) |
private IChunk |
getChunk(int p_226702_1_,
int p_226702_2_) |
IBlockReader |
getChunkForCollisions(int p_225522_1_,
int p_225522_2_) |
java.util.stream.Stream<VoxelShape> |
getCollisions(Entity p_234867_1_,
AxisAlignedBB p_234867_2_,
java.util.function.Predicate<Entity> p_234867_3_) |
java.util.stream.Stream<VoxelShape> |
getEntityCollisions(Entity p_230318_1_,
AxisAlignedBB p_230318_2_,
java.util.function.Predicate<Entity> p_230318_3_) |
FluidState |
getFluidState(BlockPos p_204610_1_) |
WorldBorder |
getWorldBorder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlockCollisions, getBlockCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel, traverseBlocks
protected final int centerX
protected final int centerZ
protected final IChunk[][] chunks
protected boolean allEmpty
protected final World level
private IChunk getChunk(int p_226702_1_, int p_226702_2_)
public WorldBorder getWorldBorder()
getWorldBorder
in interface ICollisionReader
public IBlockReader getChunkForCollisions(int p_225522_1_, int p_225522_2_)
getChunkForCollisions
in interface ICollisionReader
@Nullable public TileEntity getBlockEntity(BlockPos p_175625_1_)
getBlockEntity
in interface IBlockReader
public BlockState getBlockState(BlockPos p_180495_1_)
getBlockState
in interface IBlockReader
public java.util.stream.Stream<VoxelShape> getEntityCollisions(@Nullable Entity p_230318_1_, AxisAlignedBB p_230318_2_, java.util.function.Predicate<Entity> p_230318_3_)
getEntityCollisions
in interface ICollisionReader
public java.util.stream.Stream<VoxelShape> getCollisions(@Nullable Entity p_234867_1_, AxisAlignedBB p_234867_2_, java.util.function.Predicate<Entity> p_234867_3_)
getCollisions
in interface ICollisionReader
public FluidState getFluidState(BlockPos p_204610_1_)
getFluidState
in interface IBlockReader