Package net.minecraft.world
Interface RegistryWorldView
- All Superinterfaces:
BiomeAccess.Storage
,BlockRenderView
,BlockView
,CollisionView
,EntityView
,ModifiableTestableWorld
,ModifiableWorld
,TestableWorld
,WorldView
- All Known Subinterfaces:
ServerWorldAccess
,StructureWorldAccess
,WorldAccess
- All Known Implementing Classes:
ChunkRegion
,ClientWorld
,ServerWorld
,World
public interface RegistryWorldView extends EntityView, WorldView, ModifiableTestableWorld
A world view or
World
's superinterface that exposes access to
a registry manager.- See Also:
getRegistryManager()
-
Method Summary
Modifier and Type Method Description default Optional<RegistryKey<Biome>>
getBiomeKey(BlockPos pos)
default Stream<VoxelShape>
getEntityCollisions(Entity entity, Box box, Predicate<Entity> predicate)
DynamicRegistryManager
getRegistryManager()
default BlockPos
getTopPosition(Heightmap.Type heightmap, BlockPos pos)
default boolean
intersectsEntities(Entity entity, VoxelShape shape)
Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getHeight, getLuminance, getMaxLightLevel, method_29546, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getWorldBorder, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.EntityView
getClosestEntity, getClosestEntity, getClosestEntityIncludingUngeneratedChunks, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getClosestPlayer, getEntitiesByClass, getEntitiesIncludingUngeneratedChunks, getEntitiesIncludingUngeneratedChunks, getNonSpectatingEntities, getOtherEntities, getOtherEntities, getPlayerByUuid, getPlayers, getPlayers, getTargets, isPlayerInRange
Methods inherited from interface net.minecraft.world.ModifiableWorld
breakBlock, breakBlock, breakBlock, removeBlock, setBlockState, setBlockState, spawnEntity
Methods inherited from interface net.minecraft.world.TestableWorld
testBlockState
Methods inherited from interface net.minecraft.world.WorldView
containsFluid, getAmbientDarkness, getBiome, getBiomeAccess, getBiomeForNoiseGen, getBrightness, getChunk, getChunk, getChunk, getChunk, getColor, getDimension, getExistingChunk, getGeneratorStoredBiome, getLightLevel, getLightLevel, getSeaLevel, getStrongRedstonePower, getTopY, isAir, isChunkLoaded, isChunkLoaded, isClient, isRegionLoaded, isRegionLoaded, isSkyVisibleAllowingSea, isWater, method_29556
-
Method Details
-
getEntityCollisions
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity entity, Box box, Predicate<Entity> predicate)- Specified by:
getEntityCollisions
in interfaceCollisionView
- Specified by:
getEntityCollisions
in interfaceEntityView
-
intersectsEntities
- Specified by:
intersectsEntities
in interfaceCollisionView
- Specified by:
intersectsEntities
in interfaceEntityView
-
getTopPosition
- Specified by:
getTopPosition
in interfaceTestableWorld
- Specified by:
getTopPosition
in interfaceWorldView
-
getRegistryManager
DynamicRegistryManager getRegistryManager() -
getBiomeKey
-