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/WorldViewintermediary net/minecraft/class_4538official dkm
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.BlockView
BlockView.CollisionVisitor -
Field Summary
Fields inherited from interface net.minecraft.world.BlockView
field_54147Fields inherited from interface net.minecraft.world.RedstoneView
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontainsFluid(Box box) Returnstrueif any of the blocks insideboxcontain fluid.default <T> RegistryWrapper<T> createCommandRegistryWrapper(RegistryKey<? extends Registry<? extends T>> registryRef) intdefault RegistryEntry<Biome> default RegistryEntry<Biome> getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ) default intReturns the bottom Y level, or height, inclusive, of this view.default floatgetBrightness(BlockPos pos) Deprecated.default ChunkgetChunk(int chunkX, int chunkZ) Returns the chunk with positionchunkXandchunkZ.default ChunkgetChunk(int chunkX, int chunkZ, ChunkStatus status) getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) default ChunkReturns the chunk that containspos.getChunkAsView(int chunkX, int chunkZ) default intgetColor(BlockPos pos, ColorResolver colorResolver) getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ) default intdefault intgetLightLevel(BlockPos pos) default intgetLightLevel(BlockPos pos, int ambientDarkness) default floatintdefault Stream<BlockState> default BlockPosgetTopPosition(Heightmap.Type heightmap, BlockPos pos) Returns the position of the topmost block in the column containingposusingheightmapheightmap.intgetTopY(Heightmap.Type heightmap, int x, int z) Returns the Y coordinate of the topmost block at the coordinatesxandzusingheightmap.default intgetTopY(Heightmap.Type heightmap, BlockPos pos) default booleanbooleanisChunkLoaded(int chunkX, int chunkZ) Deprecated.default booleanisChunkLoaded(BlockPos pos) Deprecated.booleanisClient()Checks if this world view is on the logical client.default booleanisPosLoaded(int x, int z) Deprecated.default booleanisRegionLoaded(int minX, int minZ, int maxX, int maxZ) Deprecated.default booleanisRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ) Deprecated.default booleanisRegionLoaded(BlockPos min, BlockPos max) Deprecated.default booleanReturns whether the sky is visible atpos.default booleanMethods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionView
canCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getBlockOrFluidCollisions, getCollisions, getCollisionsIncludingWorldBorder, getEntityCollisions, getWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopYInclusive, isInHeightLimit, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.RedstoneView
getEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePower
-
Method Details
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;intermediary method_8402Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;official aLdkm;a(IILeeo;Z)Ledn;
-
isChunkLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isChunkLoadedLnet/minecraft/world/WorldView;isChunkLoaded(II)Zintermediary method_8393Lnet/minecraft/class_4538;method_8393(II)Zofficial bLdkm;b(II)Z
-
getTopY
Returns the Y coordinate of the topmost block at the coordinatesxandzusingheightmap.- Returns:
- the Y coordinate of the topmost block at the coordinates
xandzusingheightmap - Mappings:
Namespace Name Mixin selector named getTopYLnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)Iintermediary method_8624Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)Iofficial aLdkm;a(Lehp$a;II)I
-
getTopY
- Mappings:
Namespace Name Mixin selector named getTopYLnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/util/math/BlockPos;)Iintermediary method_67393Lnet/minecraft/class_4538;method_67393(Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_2338;)Iofficial bLdkm;b(Lehp$a;Liw;)I
-
getAmbientDarkness
int getAmbientDarkness()- Mappings:
Namespace Name Mixin selector named getAmbientDarknessLnet/minecraft/world/WorldView;getAmbientDarkness()Iintermediary method_8594Lnet/minecraft/class_4538;method_8594()Iofficial D_Ldkm;D_()I
-
getBiomeAccess
BiomeAccess getBiomeAccess()- Mappings:
Namespace Name Mixin selector named getBiomeAccessLnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;intermediary method_22385Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;official H_Ldkm;H_()Ldlo;
-
getBiome
- Mappings:
Namespace Name Mixin selector named getBiomeLnet/minecraft/world/WorldView;getBiome(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_23753Lnet/minecraft/class_4538;method_23753(Lnet/minecraft/class_2338;)Lnet/minecraft/class_6880;official uLdkm;u(Liw;)Ljg;
-
getStatesInBoxIfLoaded
- Mappings:
Namespace Name Mixin selector named getStatesInBoxIfLoadedLnet/minecraft/world/WorldView;getStatesInBoxIfLoaded(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;intermediary method_29556Lnet/minecraft/class_4538;method_29556(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;official cLdkm;c(Lffx;)Ljava/util/stream/Stream;
-
getColor
- Specified by:
getColorin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector named getColorLnet/minecraft/world/BlockRenderView;getColor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/biome/ColorResolver;)Iintermediary method_23752Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/class_6539;)Iofficial aLdjk;a(Liw;Ldjt;)I
-
getBiomeForNoiseGen
- Specified by:
getBiomeForNoiseGenin interfaceBiomeAccess.Storage- Mappings:
Namespace Name Mixin selector named getBiomeForNoiseGenLnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_16359Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;official getNoiseBiomeLdlo$a;getNoiseBiome(III)Ljg;
-
getGeneratorStoredBiome
- Mappings:
Namespace Name Mixin selector named getGeneratorStoredBiomeLnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_22387Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_6880;official aLdkm;a(III)Ljg;
-
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 isClientLnet/minecraft/world/WorldView;isClient()Zintermediary method_8608Lnet/minecraft/class_4538;method_8608()Zofficial A_Ldkm;A_()Z
-
getSeaLevel
int getSeaLevel()- Mappings:
Namespace Name Mixin selector named getSeaLevelLnet/minecraft/world/WorldView;getSeaLevel()Iintermediary method_8615Lnet/minecraft/class_4538;method_8615()Iofficial PLdkm;P()I
-
getDimension
DimensionType getDimension()- Mappings:
Namespace Name Mixin selector named getDimensionLnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;intermediary method_8597Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;official F_Ldkm;F_()Lefn;
-
getBottomY
default int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
getBottomYin interfaceHeightLimitView- See Also:
- Mappings:
Namespace Name Mixin selector named getBottomYLnet/minecraft/world/HeightLimitView;getBottomY()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Iofficial K_Ldkl;K_()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:
getHeightin interfaceHeightLimitView- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/world/HeightLimitView;getHeight()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Iofficial L_Ldkl;L_()I
-
getTopPosition
Returns the position of the topmost block in the column containingposusingheightmapheightmap.- Returns:
- the position of the topmost block in the column
containing
posusingheightmapheightmap - Mappings:
Namespace Name Mixin selector named getTopPositionLnet/minecraft/world/WorldView;getTopPosition(Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_8598Lnet/minecraft/class_4538;method_8598(Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;official aLdkm;a(Lehp$a;Liw;)Liw;
-
isAir
- Mappings:
Namespace Name Mixin selector named isAirLnet/minecraft/world/WorldView;isAir(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_22347Lnet/minecraft/class_4538;method_22347(Lnet/minecraft/class_2338;)Zofficial vLdkm;v(Liw;)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
trueifposis below the sea level, and every block between the sea level andposis either transparent or liquid.- Returns:
- whether the sky is visible at
pos - See Also:
- Mappings:
Namespace Name Mixin selector named isSkyVisibleAllowingSeaLnet/minecraft/world/WorldView;isSkyVisibleAllowingSea(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_22348Lnet/minecraft/class_4538;method_22348(Lnet/minecraft/class_2338;)Zofficial wLdkm;w(Liw;)Z
-
getPhototaxisFavor
- Mappings:
Namespace Name Mixin selector named getPhototaxisFavorLnet/minecraft/world/WorldView;getPhototaxisFavor(Lnet/minecraft/util/math/BlockPos;)Fintermediary method_42309Lnet/minecraft/class_4538;method_42309(Lnet/minecraft/class_2338;)Fofficial xLdkm;x(Liw;)F
-
getBrightness
Deprecated.- Mappings:
Namespace Name Mixin selector named getBrightnessLnet/minecraft/world/WorldView;getBrightness(Lnet/minecraft/util/math/BlockPos;)Fintermediary method_22349Lnet/minecraft/class_4538;method_22349(Lnet/minecraft/class_2338;)Fofficial yLdkm;y(Liw;)F
-
getChunk
Returns the chunk that containspos.- Returns:
- the chunk that contains
pos - Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;intermediary method_22350Lnet/minecraft/class_4538;method_22350(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;official zLdkm;z(Liw;)Ledn;
-
getChunk
Returns the chunk with positionchunkXandchunkZ.- Returns:
- the chunk with position
chunkXandchunkZ - Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(II)Lnet/minecraft/world/chunk/Chunk;intermediary method_8392Lnet/minecraft/class_4538;method_8392(II)Lnet/minecraft/class_2791;official aLdkm;a(II)Ledn;
-
getChunk
- Mappings:
Namespace Name Mixin selector named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;intermediary method_22342Lnet/minecraft/class_4538;method_22342(IILnet/minecraft/class_2806;)Lnet/minecraft/class_2791;official aLdkm;a(IILeeo;)Ledn;
-
getChunkAsView
- Specified by:
getChunkAsViewin interfaceCollisionView- Mappings:
Namespace Name Mixin selector named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;official cLdjr;c(II)Ldjn;
-
isWater
- Mappings:
Namespace Name Mixin selector named isWaterLnet/minecraft/world/WorldView;isWater(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_22351Lnet/minecraft/class_4538;method_22351(Lnet/minecraft/class_2338;)Zofficial ALdkm;A(Liw;)Z
-
containsFluid
Returnstrueif any of the blocks insideboxcontain fluid.- Returns:
trueif any of the blocks insideboxcontain fluid- Mappings:
Namespace Name Mixin selector named containsFluidLnet/minecraft/world/WorldView;containsFluid(Lnet/minecraft/util/math/Box;)Zintermediary method_22345Lnet/minecraft/class_4538;method_22345(Lnet/minecraft/class_238;)Zofficial dLdkm;d(Lffx;)Z
-
getLightLevel
- Mappings:
Namespace Name Mixin selector named getLightLevelLnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)Iintermediary method_22339Lnet/minecraft/class_4538;method_22339(Lnet/minecraft/class_2338;)Iofficial BLdkm;B(Liw;)I
-
getLightLevel
- Mappings:
Namespace Name Mixin selector named getLightLevelLnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;I)Iintermediary method_22346Lnet/minecraft/class_4538;method_22346(Lnet/minecraft/class_2338;I)Iofficial cLdkm;c(Liw;I)I
-
isPosLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isPosLoadedLnet/minecraft/world/WorldView;isPosLoaded(II)Zintermediary method_33598Lnet/minecraft/class_4538;method_33598(II)Zofficial fLdkm;f(II)Z
-
isChunkLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isChunkLoadedLnet/minecraft/world/WorldView;isChunkLoaded(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_22340Lnet/minecraft/class_4538;method_22340(Lnet/minecraft/class_2338;)Zofficial CLdkm;C(Liw;)Z
-
isRegionLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isRegionLoadedLnet/minecraft/world/WorldView;isRegionLoaded(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_22343Lnet/minecraft/class_4538;method_22343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Zofficial aLdkm;a(Liw;Liw;)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 isRegionLoadedLnet/minecraft/world/WorldView;isRegionLoaded(IIIIII)Zintermediary method_22341Lnet/minecraft/class_4538;method_22341(IIIIII)Zofficial aLdkm;a(IIIIII)Z
-
isRegionLoaded
Deprecated.- Mappings:
Namespace Name Mixin selector named isRegionLoadedLnet/minecraft/world/WorldView;isRegionLoaded(IIII)Zintermediary method_33597Lnet/minecraft/class_4538;method_33597(IIII)Zofficial bLdkm;b(IIII)Z
-
getRegistryManager
DynamicRegistryManager getRegistryManager()- Mappings:
Namespace Name Mixin selector named getRegistryManagerLnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;intermediary method_30349Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;official J_Ldkm;J_()Lju;
-
getEnabledFeatures
FeatureSet getEnabledFeatures()- Mappings:
Namespace Name Mixin selector named getEnabledFeaturesLnet/minecraft/world/WorldView;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary method_45162Lnet/minecraft/class_4538;method_45162()Lnet/minecraft/class_7699;official KLdkm;K()Lcvs;
-
createCommandRegistryWrapper
default <T> RegistryWrapper<T> createCommandRegistryWrapper(RegistryKey<? extends Registry<? extends T>> registryRef) - Mappings:
Namespace Name Mixin selector named createCommandRegistryWrapperLnet/minecraft/world/WorldView;createCommandRegistryWrapper(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryWrapper;intermediary method_45448Lnet/minecraft/class_4538;method_45448(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7225;official aLdkm;a(Lalq;)Lji;
-