Package net.minecraft.world
Interface WorldView
- All Superinterfaces:
BiomeAccess.Storage,BlockRenderView,BlockView,CollisionView,HeightLimitView
- All Known Subinterfaces:
class_5423,LunarWorldView,ServerWorldAccess,StructureWorldAccess,WorldAccess
- All Known Implementing Classes:
ChunkRegion,ClientWorld,ServerWorld,World
public interface WorldView extends BlockRenderView, CollisionView, BiomeAccess.Storage
Represents a scoped, read-only view of a world like structure that contains biomes, chunks and is bound to a dimension.
-
Method Summary
Modifier and Type Method Description default booleancontainsFluid(Box box)intgetAmbientDarkness()default BiomegetBiome(BlockPos pos)BiomeAccessgetBiomeAccess()default BiomegetBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ)default intgetBottomSectionLimit()default floatgetBrightness(BlockPos pos)Deprecated.default ChunkgetChunk(int chunkX, int chunkZ)default ChunkgetChunk(int chunkX, int chunkZ, ChunkStatus status)ChunkgetChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)default ChunkgetChunk(BlockPos pos)default intgetColor(BlockPos pos, ColorResolver colorResolver)DimensionTypegetDimension()default BlockViewgetExistingChunk(int chunkX, int chunkZ)BiomegetGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ)default intgetLightLevel(BlockPos pos)default intgetLightLevel(BlockPos pos, int ambientDarkness)intgetSeaLevel()Deprecated.default intgetSectionCount()default intgetStrongRedstonePower(BlockPos pos, Direction direction)default BlockPosgetTopPosition(Heightmap.Type heightmap, BlockPos pos)intgetTopY(Heightmap.Type heightmap, int x, int z)default booleanisAir(BlockPos pos)booleanisChunkLoaded(int chunkX, int chunkZ)Deprecated.default booleanisChunkLoaded(BlockPos pos)Deprecated.booleanisClient()Checks if this world view is on the logical client.default booleanisRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)Deprecated.default booleanisRegionLoaded(BlockPos min, BlockPos max)Deprecated.default booleanisSkyVisibleAllowingSea(BlockPos pos)default booleanisWater(BlockPos pos)default Stream<BlockState>method_29556(Box box)Methods inherited from interface net.minecraft.world.biome.source.BiomeAccess.Storage
method_31609Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.HeightLimitView
getSection, getSectionIndex, getSectionIndexFromSection, getTopHeightLimit, getTopSectionLimit, isOutOfHeightLimit, isOutOfHeightLimit, method_32890, method_32891
-
Method Details
-
getChunk
-
isChunkLoaded
Deprecated. -
getTopY
-
getAmbientDarkness
int getAmbientDarkness() -
getBiomeAccess
BiomeAccess getBiomeAccess() -
getBiome
-
method_29556
-
getColor
- Specified by:
getColorin interfaceBlockRenderView
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGenin interfaceBiomeAccess.Storage
-
getGeneratorStoredBiome
-
isClient
boolean isClient()Checks if this world view is on the logical client.If the value returned is false, it is expected that this world is present on a logical server.
-
getSeaLevel
Deprecated. -
getDimension
DimensionType getDimension() -
getSectionCount
default int getSectionCount()- Specified by:
getSectionCountin interfaceHeightLimitView
-
getBottomSectionLimit
default int getBottomSectionLimit()- Specified by:
getBottomSectionLimitin interfaceHeightLimitView
-
getTopPosition
-
isAir
-
isSkyVisibleAllowingSea
-
getBrightness
Deprecated. -
getStrongRedstonePower
-
getChunk
-
getChunk
-
getChunk
-
getExistingChunk
- Specified by:
getExistingChunkin interfaceCollisionView
-
isWater
-
containsFluid
-
getLightLevel
-
getLightLevel
-
isChunkLoaded
Deprecated. -
isRegionLoaded
Deprecated. -
isRegionLoaded
@Deprecated default boolean isRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)Deprecated.
-