Package net.minecraft.world
Interface WorldView
- All Superinterfaces:
BiomeAccess.Storage
,BlockRenderView
,BlockView
,CollisionView
- 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 boolean
containsFluid(Box box)
int
getAmbientDarkness()
default Biome
getBiome(BlockPos pos)
BiomeAccess
getBiomeAccess()
default Biome
getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ)
default float
getBrightness(BlockPos pos)
Deprecated.default Chunk
getChunk(int chunkX, int chunkZ)
default Chunk
getChunk(int chunkX, int chunkZ, ChunkStatus status)
Chunk
getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
default Chunk
getChunk(BlockPos pos)
default int
getColor(BlockPos pos, ColorResolver colorResolver)
DimensionType
getDimension()
default BlockView
getExistingChunk(int chunkX, int chunkZ)
Biome
getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ)
default int
getLightLevel(BlockPos pos)
default int
getLightLevel(BlockPos pos, int ambientDarkness)
int
getSeaLevel()
Deprecated.default int
getStrongRedstonePower(BlockPos pos, Direction direction)
default BlockPos
getTopPosition(Heightmap.Type heightmap, BlockPos pos)
int
getTopY(Heightmap.Type heightmap, int x, int z)
default boolean
isAir(BlockPos pos)
boolean
isChunkLoaded(int chunkX, int chunkZ)
Deprecated.default boolean
isChunkLoaded(BlockPos pos)
Deprecated.boolean
isClient()
Checks if this world view is on the logical client.default boolean
isRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
Deprecated.default boolean
isRegionLoaded(BlockPos min, BlockPos max)
Deprecated.default boolean
isSkyVisibleAllowingSea(BlockPos pos)
default boolean
isWater(BlockPos pos)
default Stream<BlockState>
method_29556(Box box)
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, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
-
Method Details
-
getChunk
-
isChunkLoaded
Deprecated. -
getTopY
-
getAmbientDarkness
int getAmbientDarkness() -
getBiomeAccess
BiomeAccess getBiomeAccess() -
getBiome
-
method_29556
-
getColor
- Specified by:
getColor
in interfaceBlockRenderView
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGen
in 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() -
getTopPosition
-
isAir
-
isSkyVisibleAllowingSea
-
getBrightness
Deprecated. -
getStrongRedstonePower
-
getChunk
-
getChunk
-
getChunk
-
getExistingChunk
- Specified by:
getExistingChunk
in 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.
-