Interface CommonLevelAccessor
- All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndTintGetter, BlockGetter, CollisionGetter, EntityGetter, IBlockAndTintGetterExtension, IBlockGetterExtension, ILevelReaderExtension, LevelHeightAccessor, LevelReader, LevelSimulatedReader, LevelSimulatedRW, LevelWriter, SignalGetter
- All Known Subinterfaces:
LevelAccessor, ServerLevelAccessor, WorldGenLevel
- All Known Implementing Classes:
ClientLevel, Level, ServerLevel, WorldGenRegion
-
Nested Class Summary
Nested classes/interfaces inherited from interface BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
Fields inherited from interface SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
Optional<T> getBlockEntity(BlockPos pos, BlockEntityType<T> type) default List<VoxelShape> getEntityCollisions(@Nullable Entity source, AABB testArea) default BlockPosgetHeightmapPos(Heightmap.Types type, BlockPos pos) default booleanisUnobstructed(@Nullable Entity source, VoxelShape shape) Methods inherited from interface BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShadeMethods inherited from interface BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, playersMethods inherited from interface IBlockAndTintGetterExtension
getShadeMethods inherited from interface IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, enabledFeatures, environmentAttributes, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getEffectiveSkyBrightness, getHeight, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinY, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunk, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccessMethods inherited from interface LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlockMethods inherited from interface SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
getBlockEntity
- Specified by:
getBlockEntityin interfaceBlockGetter- Specified by:
getBlockEntityin interfaceLevelSimulatedReader
-
getEntityCollisions
- Specified by:
getEntityCollisionsin interfaceCollisionGetter- Specified by:
getEntityCollisionsin interfaceEntityGetter
-
isUnobstructed
- Specified by:
isUnobstructedin interfaceCollisionGetter- Specified by:
isUnobstructedin interfaceEntityGetter
-
getHeightmapPos
- Specified by:
getHeightmapPosin interfaceLevelReader- Specified by:
getHeightmapPosin interfaceLevelSimulatedReader
-