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 - official - cts- intermediary - net/minecraft/class_4538- named - net/minecraft/world/WorldView
- 
Field SummaryFields inherited from interface net.minecraft.world.RedstoneViewDIRECTIONS
- 
Method SummaryModifier 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 floatintDeprecated.default 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 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.BlockRenderViewgetBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockViewgetBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.CollisionViewcanCollide, canPlace, doesNotIntersectEntities, doesNotIntersectEntities, findClosestCollision, findSupportingBlockPos, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmptyMethods inherited from interface net.minecraft.world.HeightLimitViewcountVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoordMethods inherited from interface net.minecraft.world.RedstoneViewgetEmittedRedstonePower, getEmittedRedstonePower, getReceivedRedstonePower, getReceivedStrongRedstonePower, getStrongRedstonePower, isEmittingRedstonePower, isReceivingRedstonePower
- 
Method Details- 
getChunk- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcts;a(IILdli;Z)Ldld;- 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;
 
- 
isChunkLoadedDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcts;b(II)Z- intermediary - method_8393- Lnet/minecraft/class_4538;method_8393(II)Z- named - isChunkLoaded- Lnet/minecraft/world/WorldView;isChunkLoaded(II)Z
 
- 
getTopYReturns 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 - official - a- Lcts;a(Ldoq$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
 
- 
getAmbientDarknessint getAmbientDarkness()- Mappings:
- Namespace - Name - Mixin selector - official - C_- Lcts;C_()I- intermediary - method_8594- Lnet/minecraft/class_4538;method_8594()I- named - getAmbientDarkness- Lnet/minecraft/world/WorldView;getAmbientDarkness()I
 
- 
getBiomeAccessBiomeAccess getBiomeAccess()- Mappings:
- Namespace - Name - Mixin selector - official - G_- Lcts;G_()Lcuq;- 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 - t- Lcts;t(Lhx;)Lih;- intermediary - method_23753- Lnet/minecraft/class_4538;method_23753(Lnet/minecraft/class_2338;)Lnet/minecraft/class_6880;- named - getBiome- Lnet/minecraft/world/WorldView;getBiome(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
getStatesInBoxIfLoaded- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcts;c(Lelo;)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:
- getColorin interface- BlockRenderView
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcss;a(Lhx;Lcta;)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/biome/ColorResolver;)I
 
- 
getBiomeForNoiseGen- Specified by:
- getBiomeForNoiseGenin interface- BiomeAccess.Storage
- Mappings:
- Namespace - Name - Mixin selector - official - getNoiseBiome- Lcuq$a;getNoiseBiome(III)Lih;- intermediary - method_16359- Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_6880;- named - getBiomeForNoiseGen- Lnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
getGeneratorStoredBiome- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcts;a(III)Lih;- intermediary - method_22387- Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_6880;- named - getGeneratorStoredBiome- Lnet/minecraft/world/WorldView;getGeneratorStoredBiome(III)Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
isClientboolean 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 - y_- Lcts;y_()Z- intermediary - method_8608- Lnet/minecraft/class_4538;method_8608()Z- named - isClient- Lnet/minecraft/world/WorldView;isClient()Z
 
- 
getSeaLevelDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - A_- Lcts;A_()I- intermediary - method_8615- Lnet/minecraft/class_4538;method_8615()I- named - getSeaLevel- Lnet/minecraft/world/WorldView;getSeaLevel()I
 
- 
getDimensionDimensionType getDimension()- Mappings:
- Namespace - Name - Mixin selector - official - E_- Lcts;E_()Ldmq;- 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;
 
- 
getBottomYdefault int getBottomY()Returns the bottom Y level, or height, inclusive, of this view.- Specified by:
- getBottomYin interface- HeightLimitView
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - J_- Lctr;J_()I- intermediary - method_31607- Lnet/minecraft/class_5539;method_31607()I- named - getBottomY- Lnet/minecraft/world/HeightLimitView;getBottomY()I
 
- 
getHeightdefault 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 interface- HeightLimitView
- Returns:
- the difference in the minimum and maximum height
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - K_- Lctr;K_()I- intermediary - method_31605- Lnet/minecraft/class_5539;method_31605()I- named - getHeight- Lnet/minecraft/world/HeightLimitView;getHeight()I
 
- 
getTopPositionReturns 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 - official - a- Lcts;a(Ldoq$a;Lhx;)Lhx;- 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 - u- Lcts;u(Lhx;)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
 
- 
isSkyVisibleAllowingSeaReturns 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 - official - v- Lcts;v(Lhx;)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
 
- 
getPhototaxisFavor- Mappings:
- Namespace - Name - Mixin selector - official - w- Lcts;w(Lhx;)F- intermediary - method_42309- Lnet/minecraft/class_4538;method_42309(Lnet/minecraft/class_2338;)F- named - getPhototaxisFavor- Lnet/minecraft/world/WorldView;getPhototaxisFavor(Lnet/minecraft/util/math/BlockPos;)F
 
- 
getBrightnessDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - x- Lcts;x(Lhx;)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
 
- 
getChunkReturns the chunk that containspos.- Returns:
- the chunk that contains pos
- Mappings:
- Namespace - Name - Mixin selector - official - y- Lcts;y(Lhx;)Ldld;- 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;
 
- 
getChunkReturns the chunk with positionchunkXandchunkZ.- Returns:
- the chunk with position chunkXandchunkZ
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcts;a(II)Ldld;- 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- Lcts;a(IILdli;)Ldld;- 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:
- getChunkAsViewin interface- CollisionView
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lcsz;c(II)Lcsv;- 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 - z- Lcts;z(Lhx;)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
 
- 
containsFluidReturnstrueif any of the blocks insideboxcontain fluid.- Returns:
- trueif any of the blocks inside- boxcontain fluid
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lcts;d(Lelo;)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 - A- Lcts;A(Lhx;)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- Lcts;c(Lhx;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
 
- 
isPosLoadedDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - f- Lcts;f(II)Z- intermediary - method_33598- Lnet/minecraft/class_4538;method_33598(II)Z- named - isPosLoaded- Lnet/minecraft/world/WorldView;isPosLoaded(II)Z
 
- 
isChunkLoadedDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - B- Lcts;B(Lhx;)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
 
- 
isRegionLoadedDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcts;a(Lhx;Lhx;)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- Lcts;a(IIIIII)Z- intermediary - method_22341- Lnet/minecraft/class_4538;method_22341(IIIIII)Z- named - isRegionLoaded- Lnet/minecraft/world/WorldView;isRegionLoaded(IIIIII)Z
 
- 
isRegionLoadedDeprecated.- Mappings:
- Namespace - Name - Mixin selector - official - b- Lcts;b(IIII)Z- intermediary - method_33597- Lnet/minecraft/class_4538;method_33597(IIII)Z- named - isRegionLoaded- Lnet/minecraft/world/WorldView;isRegionLoaded(IIII)Z
 
- 
getRegistryManagerDynamicRegistryManager getRegistryManager()- Mappings:
- Namespace - Name - Mixin selector - official - I_- Lcts;I_()Liu;- intermediary - method_30349- Lnet/minecraft/class_4538;method_30349()Lnet/minecraft/class_5455;- named - getRegistryManager- Lnet/minecraft/world/WorldView;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
 
- 
getEnabledFeaturesFeatureSet getEnabledFeatures()- Mappings:
- Namespace - Name - Mixin selector - official - I- Lcts;I()Lchs;- intermediary - method_45162- Lnet/minecraft/class_4538;method_45162()Lnet/minecraft/class_7699;- named - getEnabledFeatures- Lnet/minecraft/world/WorldView;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
 
- 
createCommandRegistryWrapperdefault <T> RegistryWrapper<T> createCommandRegistryWrapper(RegistryKey<? extends Registry<? extends T>> registryRef) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lcts;a(Lahf;)Lij;- intermediary - method_45448- Lnet/minecraft/class_4538;method_45448(Lnet/minecraft/class_5321;)Lnet/minecraft/class_7225;- named - createCommandRegistryWrapper- Lnet/minecraft/world/WorldView;createCommandRegistryWrapper(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/RegistryWrapper;
 
 
-