Package net.minecraft.world
Interface WorldView
- All Superinterfaces:
BiomeAccess.Storage
,BlockRenderView
,BlockView
,CollisionView
,HeightLimitView
,RedstoneView
- All Known Subinterfaces:
LunarWorldView
,RegistryWorldView
,ServerWorldAccess
,StructureWorldAccess
,WorldAccess
- All Known Implementing Classes:
ChunkRegion
,ClientWorld
,ServerWorld
,World
public interface WorldView
extends BlockRenderView, CollisionView, RedstoneView, BiomeAccess.Storage
Represents a scoped, read-only view of a world like structure that contains biomes, chunks and is bound to a dimension.
- Mappings:
Namespace Name named net/minecraft/world/WorldView
intermediary net/minecraft/class_4538
official dhk
-
Field Summary
Fields inherited from interface net.minecraft.world.BlockView
field_54147
Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
containsFluid
(Box box) Returnstrue
if any of the blocks insidebox
contain fluid.default <T> RegistryWrapper
<T> createCommandRegistryWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) int
default RegistryEntry
<Biome> default RegistryEntry
<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) Returns the chunk with positionchunkX
andchunkZ
.default Chunk
getChunk
(int chunkX, int chunkZ, ChunkStatus status) getChunk
(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) default Chunk
Returns the chunk that containspos
.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) default float
int
default Stream
<BlockState> default BlockPos
getTopPosition
(Heightmap.Type heightmap, BlockPos pos) Returns the position of the topmost block in the column containingpos
usingheightmap
heightmap.int
getTopY
(Heightmap.Type heightmap, int x, int z) Returns the Y coordinate of the topmost block at the coordinatesx
andz
usingheightmap
.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
Returns whether the sky is visible atpos
.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, getStatesInBox, raycast, raycast, raycastBlock
Methods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisionsIncludingWorldBorder, getEntityCollisions, getWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty
Methods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
Methods inherited from interface net.minecraft.world.RedstoneView
getEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePower
-
Method Details
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
intermediary method_8402
Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;
official a
Ldhk;a(IILeaq;Z)Ldzp;
-
isChunkLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isChunkLoaded
Lnet/minecraft/world/WorldView;isChunkLoaded(II)Z
intermediary method_8393
Lnet/minecraft/class_4538;method_8393(II)Z
official b
Ldhk;b(II)Z
-
getTopY
Returns the Y coordinate of the topmost block at the coordinatesx
andz
usingheightmap
.- Returns:
- the Y coordinate of the topmost block at the coordinates
x
andz
usingheightmap
- Mappings:
Namespace Name Mixin selector named getTopY
Lnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
intermediary method_8624
Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)I
official a
Ldhk;a(Ledp$a;II)I
-
getAmbientDarkness
int getAmbientDarkness()- Mappings:
Namespace Name Mixin selector named getAmbientDarkness
Lnet/minecraft/world/WorldView;getAmbientDarkness()I
intermediary method_8594
Lnet/minecraft/class_4538;method_8594()I
official E_
Ldhk;E_()I
-
getBiomeAccess
BiomeAccess getBiomeAccess()- Mappings:
Namespace Name Mixin selector named getBiomeAccess
Lnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
intermediary method_22385
Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;
official I_
Ldhk;I_()Ldil;
-
getBiome
- Mappings:
Namespace Name Mixin selector named getBiome
Lnet/minecraft/world/WorldView;getBiome(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_23753
Lnet/minecraft/class_4538;method_23753(Lnet/minecraft/class_2338;)Lnet/minecraft/class_6880;
official t
Ldhk;t(Ljh;)Ljq;
-
getStatesInBoxIfLoaded
- Mappings:
Namespace Name Mixin selector named getStatesInBoxIfLoaded
Lnet/minecraft/world/WorldView;getStatesInBoxIfLoaded(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
intermediary method_29556
Lnet/minecraft/class_4538;method_29556(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;
official c
Ldhk;c(Lfbs;)Ljava/util/stream/Stream;
-
getColor
- Specified by:
getColor
in interfaceBlockRenderView
- Mappings:
Namespace Name Mixin selector named getColor
Lnet/minecraft/world/BlockRenderView;getColor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/ColorResolver;)I
intermediary method_23752
Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/class_6539;)I
official a
Ldgj;a(Ljh;Ldgr;)I
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGen
in interfaceBiomeAccess.Storage
- Mappings:
Namespace Name Mixin selector named getBiomeForNoiseGen
Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_16359
Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;
official getNoiseBiome
Ldil$a;getNoiseBiome(III)Ljq;
-
getGeneratorStoredBiome
- Mappings:
Namespace Name Mixin selector named getGeneratorStoredBiome
Lnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_22387
Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_6880;
official a
Ldhk;a(III)Ljq;
-
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 named isClient
Lnet/minecraft/world/WorldView;isClient()Z
intermediary method_8608
Lnet/minecraft/class_4538;method_8608()Z
official B_
Ldhk;B_()Z
-
getSeaLevel
int getSeaLevel()- Mappings:
Namespace Name Mixin selector named getSeaLevel
Lnet/minecraft/world/WorldView;getSeaLevel()I
intermediary method_8615
Lnet/minecraft/class_4538;method_8615()I
official O
Ldhk;O()I
-
getDimension
DimensionType getDimension()- Mappings:
Namespace Name Mixin selector named getDimension
Lnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
intermediary method_8597
Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;
official G_
Ldhk;G_()Lebp;
-
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 named getBottomY
Lnet/minecraft/world/HeightLimitView;getBottomY()I
intermediary method_31607
Lnet/minecraft/class_5539;method_31607()I
official L_
Ldhj;L_()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 named getHeight
Lnet/minecraft/world/HeightLimitView;getHeight()I
intermediary method_31605
Lnet/minecraft/class_5539;method_31605()I
official M_
Ldhj;M_()I
-
getTopPosition
Returns the position of the topmost block in the column containingpos
usingheightmap
heightmap.- Returns:
- the position of the topmost block in the column
containing
pos
usingheightmap
heightmap - Mappings:
Namespace Name Mixin selector named getTopPosition
Lnet/minecraft/world/WorldView;getTopPosition(Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
intermediary method_8598
Lnet/minecraft/class_4538;method_8598(Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
official a
Ldhk;a(Ledp$a;Ljh;)Ljh;
-
isAir
- Mappings:
Namespace Name Mixin selector named isAir
Lnet/minecraft/world/WorldView;isAir(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_22347
Lnet/minecraft/class_4538;method_22347(Lnet/minecraft/class_2338;)Z
official u
Ldhk;u(Ljh;)Z
-
isSkyVisibleAllowingSea
Returns whether the sky is visible atpos
.In addition to the normal logic that checks the sky light level, this method also returns
true
ifpos
is below the sea level, and every block between the sea level andpos
is either transparent or liquid.- Returns:
- whether the sky is visible at
pos
- See Also:
- Mappings:
Namespace Name Mixin selector named isSkyVisibleAllowingSea
Lnet/minecraft/world/WorldView;isSkyVisibleAllowingSea(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_22348
Lnet/minecraft/class_4538;method_22348(Lnet/minecraft/class_2338;)Z
official v
Ldhk;v(Ljh;)Z
-
getPhototaxisFavor
- Mappings:
Namespace Name Mixin selector named getPhototaxisFavor
Lnet/minecraft/world/WorldView;getPhototaxisFavor(Lnet/minecraft/util/math/BlockPos;)F
intermediary method_42309
Lnet/minecraft/class_4538;method_42309(Lnet/minecraft/class_2338;)F
official w
Ldhk;w(Ljh;)F
-
getBrightness
Deprecated.- Mappings:
Namespace Name Mixin selector named getBrightness
Lnet/minecraft/world/WorldView;getBrightness(Lnet/minecraft/util/math/BlockPos;)F
intermediary method_22349
Lnet/minecraft/class_4538;method_22349(Lnet/minecraft/class_2338;)F
official x
Ldhk;x(Ljh;)F
-
getChunk
Returns the chunk that containspos
.- Returns:
- the chunk that contains
pos
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;
intermediary method_22350
Lnet/minecraft/class_4538;method_22350(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;
official y
Ldhk;y(Ljh;)Ldzp;
-
getChunk
Returns the chunk with positionchunkX
andchunkZ
.- Returns:
- the chunk with position
chunkX
andchunkZ
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
intermediary method_8392
Lnet/minecraft/class_4538;method_8392(II)Lnet/minecraft/class_2791;
official a
Ldhk;a(II)Ldzp;
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunk
Lnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
intermediary method_22342
Lnet/minecraft/class_4538;method_22342(IILnet/minecraft/class_2806;)Lnet/minecraft/class_2791;
official a
Ldhk;a(IILeaq;)Ldzp;
-
getChunkAsView
- Specified by:
getChunkAsView
in interfaceCollisionView
- Mappings:
Namespace Name Mixin selector named getChunkAsView
Lnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
intermediary method_22338
Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;
official c
Ldgq;c(II)Ldgm;
-
isWater
- Mappings:
Namespace Name Mixin selector named isWater
Lnet/minecraft/world/WorldView;isWater(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_22351
Lnet/minecraft/class_4538;method_22351(Lnet/minecraft/class_2338;)Z
official z
Ldhk;z(Ljh;)Z
-
containsFluid
Returnstrue
if any of the blocks insidebox
contain fluid.- Returns:
true
if any of the blocks insidebox
contain fluid- Mappings:
Namespace Name Mixin selector named containsFluid
Lnet/minecraft/world/WorldView;containsFluid(Lnet/minecraft/util/math/Box;)Z
intermediary method_22345
Lnet/minecraft/class_4538;method_22345(Lnet/minecraft/class_238;)Z
official d
Ldhk;d(Lfbs;)Z
-
getLightLevel
- Mappings:
Namespace Name Mixin selector named getLightLevel
Lnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I
intermediary method_22339
Lnet/minecraft/class_4538;method_22339(Lnet/minecraft/class_2338;)I
official A
Ldhk;A(Ljh;)I
-
getLightLevel
- Mappings:
Namespace Name Mixin selector named getLightLevel
Lnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;I)I
intermediary method_22346
Lnet/minecraft/class_4538;method_22346(Lnet/minecraft/class_2338;I)I
official c
Ldhk;c(Ljh;I)I
-
isPosLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isPosLoaded
Lnet/minecraft/world/WorldView;isPosLoaded(II)Z
intermediary method_33598
Lnet/minecraft/class_4538;method_33598(II)Z
official f
Ldhk;f(II)Z
-
isChunkLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isChunkLoaded
Lnet/minecraft/world/WorldView;isChunkLoaded(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_22340
Lnet/minecraft/class_4538;method_22340(Lnet/minecraft/class_2338;)Z
official B
Ldhk;B(Ljh;)Z
-
isRegionLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isRegionLoaded
Lnet/minecraft/world/WorldView;isRegionLoaded(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_22343
Lnet/minecraft/class_4538;method_22343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Z
official a
Ldhk;a(Ljh;Ljh;)Z
-
isRegionLoaded
@Deprecated default boolean isRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Deprecated.- Mappings:
Namespace Name Mixin selector named isRegionLoaded
Lnet/minecraft/world/WorldView;isRegionLoaded(IIIIII)Z
intermediary method_22341
Lnet/minecraft/class_4538;method_22341(IIIIII)Z
official a
Ldhk;a(IIIIII)Z
-
isRegionLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isRegionLoaded
Lnet/minecraft/world/WorldView;isRegionLoaded(IIII)Z
intermediary method_33597
Lnet/minecraft/class_4538;method_33597(IIII)Z
official b
Ldhk;b(IIII)Z
-
getRegistryManager
DynamicRegistryManager getRegistryManager()- Mappings:
Namespace Name Mixin selector named getRegistryManager
Lnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
intermediary method_30349
Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;
official K_
Ldhk;K_()Lke;
-
getEnabledFeatures
FeatureSet getEnabledFeatures()- Mappings:
Namespace Name Mixin selector named getEnabledFeatures
Lnet/minecraft/world/WorldView;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45162
Lnet/minecraft/class_4538;method_45162()Lnet/minecraft/class_7699;
official J
Ldhk;J()Lcss;
-
createCommandRegistryWrapper
default <T> RegistryWrapper<T> createCommandRegistryWrapper(RegistryKey<? extends Registry<? extends T>> registryRef) - Mappings:
Namespace Name Mixin selector named createCommandRegistryWrapper
Lnet/minecraft/world/WorldView;createCommandRegistryWrapper(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryWrapper;
intermediary method_45448
Lnet/minecraft/class_4538;method_45448(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7225;
official a
Ldhk;a(Laly;)Ljs;
-