Package net.minecraft.world
Class Region
java.lang.Object
net.minecraft.world.Region
- All Implemented Interfaces:
IBlockReader
,ICollisionReader
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity
(BlockPos p_175625_1_) getBlockState
(BlockPos p_180495_1_) private IChunk
getChunk
(int p_226702_1_, int p_226702_2_) private IChunk
getChunkForCollisions
(int p_225522_1_, int p_225522_2_) getCollisions
(Entity p_234867_1_, AxisAlignedBB p_234867_2_, Predicate<Entity> p_234867_3_) getEntityCollisions
(Entity p_230318_1_, AxisAlignedBB p_230318_2_, Predicate<Entity> p_230318_3_) getFluidState
(BlockPos p_204610_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.IBlockReader
clip, clipWithInteractionOverride, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, getMaxBuildHeight, getMaxLightLevel
Methods inherited from interface net.minecraft.world.ICollisionReader
getBlockCollisions, getBlockCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
-
Field Details
-
centerX
protected final int centerX -
centerZ
protected final int centerZ -
chunks
-
allEmpty
protected boolean allEmpty -
level
-
-
Constructor Details
-
Region
-
-
Method Details
-
getChunk
-
getChunk
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceICollisionReader
-
getChunkForCollisions
- Specified by:
getChunkForCollisions
in interfaceICollisionReader
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceIBlockReader
-
getBlockState
- Specified by:
getBlockState
in interfaceIBlockReader
-
getEntityCollisions
public Stream<VoxelShape> getEntityCollisions(@Nullable Entity p_230318_1_, AxisAlignedBB p_230318_2_, Predicate<Entity> p_230318_3_) - Specified by:
getEntityCollisions
in interfaceICollisionReader
-
getCollisions
public Stream<VoxelShape> getCollisions(@Nullable Entity p_234867_1_, AxisAlignedBB p_234867_2_, Predicate<Entity> p_234867_3_) - Specified by:
getCollisions
in interfaceICollisionReader
-
getFluidState
- Specified by:
getFluidState
in interfaceIBlockReader
-