Package net.minecraft.world.level
Class PathNavigationRegion
java.lang.Object
net.minecraft.world.level.PathNavigationRegion
- All Implemented Interfaces:
BlockGetter
,CollisionGetter
,LevelHeightAccessor
,IBlockGetterExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected final int
protected final int
protected final ChunkAccess[][]
protected final Level
Fields inherited from interface net.minecraft.world.level.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
-
Constructor Summary
ConstructorsConstructorDescriptionPathNavigationRegion
(Level pLevel, BlockPos pCenterPos, BlockPos pOffsetPos) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity
(BlockPos pPos) getBlockState
(BlockPos pPos) private ChunkAccess
getChunk
(int pX, int pZ) private ChunkAccess
getChunkForCollisions
(int pChunkX, int pChunkZ) getEntityCollisions
(Entity pEntity, AABB pCollisionBox) getFluidState
(BlockPos pPos) int
int
getMinY()
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.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockStates, getLightEmission, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
centerX
protected final int centerX -
centerZ
protected final int centerZ -
chunks
-
allEmpty
protected boolean allEmpty -
level
-
plains
-
-
Constructor Details
-
PathNavigationRegion
-
-
Method Details
-
getChunk
-
getChunk
-
getWorldBorder
- Specified by:
getWorldBorder
in interfaceCollisionGetter
-
getChunkForCollisions
- Specified by:
getChunkForCollisions
in interfaceCollisionGetter
-
getEntityCollisions
- Specified by:
getEntityCollisions
in interfaceCollisionGetter
-
getBlockEntity
- Specified by:
getBlockEntity
in interfaceBlockGetter
-
getBlockState
- Specified by:
getBlockState
in interfaceBlockGetter
-
getFluidState
- Specified by:
getFluidState
in interfaceBlockGetter
-
getMinY
public int getMinY()- Specified by:
getMinY
in interfaceLevelHeightAccessor
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLevelHeightAccessor
-