Package net.minecraft.world
Interface WorldView
- All Superinterfaces:
BiomeAccess.Storage
,BlockRenderView
,BlockView
,CollisionView
,HeightLimitView
- All Known Subinterfaces:
LunarWorldView
,RegistryWorldView
,ServerWorldAccess
,StructureWorldAccess
,WorldAccess
- All Known Implementing Classes:
ChunkRegion
,ClientWorld
,ServerWorld
,World
Represents a scoped, read-only view of a world like structure that contains biomes, chunks and is bound to a dimension.
- Mappings:
Namespace Name official bzz
intermediary net/minecraft/class_4538
named net/minecraft/world/WorldView
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
containsFluid
(Box box) int
default Biome
default Biome
getBiomeForNoiseGen
(int biomeX, int biomeY, int biomeZ) default int
Returns the bottom Y level, or height, inclusive, of this view.default float
getBrightness
(BlockPos pos) Deprecated.default Chunk
getChunk
(int chunkX, int chunkZ) default Chunk
getChunk
(int chunkX, int chunkZ, ChunkStatus status) getChunk
(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) default Chunk
getChunkAsView
(int chunkX, int chunkZ) default int
getColor
(BlockPos pos, ColorResolver colorResolver) getGeneratorStoredBiome
(int biomeX, int biomeY, int biomeZ) default int
default int
getLightLevel
(BlockPos pos) default int
getLightLevel
(BlockPos pos, int ambientDarkness) int
Deprecated.default Stream<BlockState>
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
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
isPosLoaded
(int x, int z) Deprecated.default boolean
isRegionLoaded
(int minX, int minZ, int maxX, int maxZ) Deprecated.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
default boolean
Methods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisible
Methods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, findClosestCollision, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Method Details
-
getChunk
- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(IILcpu;Z)Lcpr;
intermediary method_8402
Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;
named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
-
isChunkLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector official b
Lbzz;b(II)Z
intermediary method_8393
Lnet/minecraft/class_4538;method_8393(II)Z
named isChunkLoaded
Lnet/minecraft/world/WorldView;isChunkLoaded(II)Z
-
getTopY
- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(Lcsu$a;II)I
intermediary method_8624
Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)I
named getTopY
Lnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
-
getAmbientDarkness
int getAmbientDarkness()- Mappings:
Namespace Name Mixin selector official o_
Lbzz;o_()I
intermediary method_8594
Lnet/minecraft/class_4538;method_8594()I
named getAmbientDarkness
Lnet/minecraft/world/WorldView;getAmbientDarkness()I
-
getBiomeAccess
BiomeAccess getBiomeAccess()- Mappings:
Namespace Name Mixin selector official s_
Lbzz;s_()Lcau;
intermediary method_22385
Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;
named getBiomeAccess
Lnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
-
getBiome
- Mappings:
Namespace Name Mixin selector official v
Lbzz;v(Lgh;)Lcas;
intermediary method_23753
Lnet/minecraft/class_4538;method_23753(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1959;
named getBiome
Lnet/minecraft/world/WorldView;getBiome(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/biome/Biome;
-
getStatesInBoxIfLoaded
- Mappings:
Namespace Name Mixin selector official c
Lbzz;c(Ldnu;)Ljava/util/stream/Stream;
intermediary method_29556
Lnet/minecraft/class_4538;method_29556(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;
named getStatesInBoxIfLoaded
Lnet/minecraft/world/WorldView;getStatesInBoxIfLoaded(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
-
getColor
- Specified by:
getColor
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector official a
Lbyz;a(Lgh;Lbzh;)I
intermediary method_23752
Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/class_6539;)I
named getColor
Lnet/minecraft/world/BlockRenderView;getColor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/level/ColorResolver;)I
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGen
in interfaceBiomeAccess.Storage
- Mappings:
Namespace Name Mixin selector official getNoiseBiome
Lcau$a;getNoiseBiome(III)Lcas;
intermediary method_16359
Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_1959;
named getBiomeForNoiseGen
Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/world/biome/Biome;
-
getGeneratorStoredBiome
- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(III)Lcas;
intermediary method_22387
Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_1959;
named getGeneratorStoredBiome
Lnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/world/biome/Biome;
-
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.
- Mappings:
Namespace Name Mixin selector official k_
Lbzz;k_()Z
intermediary method_8608
Lnet/minecraft/class_4538;method_8608()Z
named isClient
Lnet/minecraft/world/WorldView;isClient()Z
-
getSeaLevel
Deprecated.- Mappings:
Namespace Name Mixin selector official m_
Lbzz;m_()I
intermediary method_8615
Lnet/minecraft/class_4538;method_8615()I
named getSeaLevel
Lnet/minecraft/world/WorldView;getSeaLevel()I
-
getDimension
DimensionType getDimension()- Mappings:
Namespace Name Mixin selector official q_
Lbzz;q_()Lcqy;
intermediary method_8597
Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;
named getDimension
Lnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
-
getBottomY
default int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomY
in interfaceHeightLimitView
- See Also:
- Mappings:
Namespace Name Mixin selector official u_
Lbzy;u_()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
named getBottomY
Lnet/minecraft/world/HeightLimitView;getBottomY()I
-
getHeight
default int getHeight()Returns the difference in the minimum and maximum height.This is the number of blocks that can be modified in any vertical column within the view, or the vertical size, in blocks, of the view.
- Specified by:
getHeight
in interfaceHeightLimitView
- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector official v_
Lbzy;v_()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
-
getTopPosition
- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(Lcsu$a;Lgh;)Lgh;
intermediary method_8598
Lnet/minecraft/class_4538;method_8598(Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
named getTopPosition
Lnet/minecraft/world/WorldView;getTopPosition(Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
-
isAir
- Mappings:
Namespace Name Mixin selector official w
Lbzz;w(Lgh;)Z
intermediary method_22347
Lnet/minecraft/class_4538;method_22347(Lnet/minecraft/class_2338;)Z
named isAir
Lnet/minecraft/world/WorldView;isAir(Lnet/minecraft/util/math/BlockPos;)Z
-
isSkyVisibleAllowingSea
- Mappings:
Namespace Name Mixin selector official x
Lbzz;x(Lgh;)Z
intermediary method_22348
Lnet/minecraft/class_4538;method_22348(Lnet/minecraft/class_2338;)Z
named isSkyVisibleAllowingSea
Lnet/minecraft/world/WorldView;isSkyVisibleAllowingSea(Lnet/minecraft/util/math/BlockPos;)Z
-
getBrightness
Deprecated.- Mappings:
Namespace Name Mixin selector official y
Lbzz;y(Lgh;)F
intermediary method_22349
Lnet/minecraft/class_4538;method_22349(Lnet/minecraft/class_2338;)F
named getBrightness
Lnet/minecraft/world/WorldView;getBrightness(Lnet/minecraft/util/math/BlockPos;)F
-
getStrongRedstonePower
- Mappings:
Namespace Name Mixin selector official c
Lbzz;c(Lgh;Lgm;)I
intermediary method_22344
Lnet/minecraft/class_4538;method_22344(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
named getStrongRedstonePower
Lnet/minecraft/world/WorldView;getStrongRedstonePower(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getChunk
- Mappings:
Namespace Name Mixin selector official z
Lbzz;z(Lgh;)Lcpr;
intermediary method_22350
Lnet/minecraft/class_4538;method_22350(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;
named getChunk
Lnet/minecraft/world/WorldView;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;
-
getChunk
- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(II)Lcpr;
intermediary method_8392
Lnet/minecraft/class_4538;method_8392(II)Lnet/minecraft/class_2791;
named getChunk
Lnet/minecraft/world/WorldView;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
-
getChunk
- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(IILcpu;)Lcpr;
intermediary method_22342
Lnet/minecraft/class_4538;method_22342(IILnet/minecraft/class_2806;)Lnet/minecraft/class_2791;
named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
-
getChunkAsView
- Specified by:
getChunkAsView
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector official c
Lbzg;c(II)Lbzc;
intermediary method_22338
Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;
named getChunkAsView
Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
-
isWater
- Mappings:
Namespace Name Mixin selector official A
Lbzz;A(Lgh;)Z
intermediary method_22351
Lnet/minecraft/class_4538;method_22351(Lnet/minecraft/class_2338;)Z
named isWater
Lnet/minecraft/world/WorldView;isWater(Lnet/minecraft/util/math/BlockPos;)Z
-
containsFluid
- Mappings:
Namespace Name Mixin selector official d
Lbzz;d(Ldnu;)Z
intermediary method_22345
Lnet/minecraft/class_4538;method_22345(Lnet/minecraft/class_238;)Z
named containsFluid
Lnet/minecraft/world/WorldView;containsFluid(Lnet/minecraft/util/math/Box;)Z
-
getLightLevel
- Mappings:
Namespace Name Mixin selector official B
Lbzz;B(Lgh;)I
intermediary method_22339
Lnet/minecraft/class_4538;method_22339(Lnet/minecraft/class_2338;)I
named getLightLevel
Lnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I
-
getLightLevel
- Mappings:
Namespace Name Mixin selector official c
Lbzz;c(Lgh;I)I
intermediary method_22346
Lnet/minecraft/class_4538;method_22346(Lnet/minecraft/class_2338;I)I
named getLightLevel
Lnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;I)I
-
isPosLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector official f
Lbzz;f(II)Z
intermediary method_33598
Lnet/minecraft/class_4538;method_33598(II)Z
named isPosLoaded
Lnet/minecraft/world/WorldView;isPosLoaded(II)Z
-
isChunkLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector official C
Lbzz;C(Lgh;)Z
intermediary method_22340
Lnet/minecraft/class_4538;method_22340(Lnet/minecraft/class_2338;)Z
named isChunkLoaded
Lnet/minecraft/world/WorldView;isChunkLoaded(Lnet/minecraft/util/math/BlockPos;)Z
-
isRegionLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(Lgh;Lgh;)Z
intermediary method_22343
Lnet/minecraft/class_4538;method_22343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Z
named isRegionLoaded
Lnet/minecraft/world/WorldView;isRegionLoaded(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Z
-
isRegionLoaded
@Deprecated default boolean isRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Deprecated.- Mappings:
Namespace Name Mixin selector official a
Lbzz;a(IIIIII)Z
intermediary method_22341
Lnet/minecraft/class_4538;method_22341(IIIIII)Z
named isRegionLoaded
Lnet/minecraft/world/WorldView;isRegionLoaded(IIIIII)Z
-
isRegionLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector official b
Lbzz;b(IIII)Z
intermediary method_33597
Lnet/minecraft/class_4538;method_33597(IIII)Z
named isRegionLoaded
Lnet/minecraft/world/WorldView;isRegionLoaded(IIII)Z
-