接口 WorldView
-
- 所有已知实现类:
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.- Mappings:
Namespace Name official bvuintermediary net/minecraft/class_4538named net/minecraft/world/WorldView
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 default booleancontainsFluid(Box box)intgetAmbientDarkness()default BiomegetBiome(BlockPos pos)BiomeAccessgetBiomeAccess()default BiomegetBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ)default intgetBottomY()Returns the bottom Y level, or height, inclusive, of this view.default floatgetBrightness(BlockPos pos)已过时。default ChunkgetChunk(int chunkX, int chunkZ)default ChunkgetChunk(int chunkX, int chunkZ, ChunkStatus status)@Nullable ChunkgetChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)default ChunkgetChunk(BlockPos pos)default @Nullable BlockViewgetChunkAsView(int chunkX, int chunkZ)default intgetColor(BlockPos pos, ColorResolver colorResolver)DimensionTypegetDimension()BiomegetGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ)default intgetHeight()default intgetLightLevel(BlockPos pos)default intgetLightLevel(BlockPos pos, int ambientDarkness)intgetSeaLevel()已过时。default Stream<BlockState>getStatesInBoxIfLoaded(Box box)default intgetStrongRedstonePower(BlockPos pos, Direction direction)default BlockPosgetTopPosition(Heightmap.Type heightmap, BlockPos pos)intgetTopY(Heightmap.Type heightmap, int x, int z)default booleanisAir(BlockPos pos)booleanisChunkLoaded(int chunkX, int chunkZ)已过时。default booleanisChunkLoaded(BlockPos pos)已过时。booleanisClient()Checks if this world view is on the logical client.default booleanisPosLoaded(int x, int z)已过时。default booleanisRegionLoaded(int minX, int minZ, int maxX, int maxZ)已过时。default booleanisRegionLoaded(int minX, int minY, int minZ, int maxX, int maxY, int maxZ)已过时。default booleanisRegionLoaded(BlockPos min, BlockPos max)已过时。default booleanisSkyVisibleAllowingSea(BlockPos pos)default booleanisWater(BlockPos pos)-
从接口继承的方法 net.minecraft.world.biome.source.BiomeAccess.Storage
getBiomeForNoiseGen
-
从接口继承的方法 net.minecraft.world.BlockRenderView
getBaseLightLevel, getBrightness, getLightingProvider, getLightLevel, isSkyVisible
-
从接口继承的方法 net.minecraft.world.BlockView
getBlockEntity, getBlockEntity, getBlockState, getDismountHeight, getDismountHeight, getFluidState, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlock
-
从接口继承的方法 net.minecraft.world.CollisionView
canPlace, getBlockCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, intersectsEntities, intersectsEntities, isBlockSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, isSpaceEmpty, method_33594
-
从接口继承的方法 net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
-
-
-
方法详细资料
-
getChunk
@Nullable @Nullable Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
- Mappings:
Namespace Name Mixin selector official aLbvu;a(IILclo;Z)Lclk;intermediary method_8402Lnet/minecraft/class_4538;method_8402(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;Z)Lnet/minecraft/world/chunk/Chunk;
-
isChunkLoaded
@Deprecated boolean isChunkLoaded(int chunkX, int chunkZ)
已过时。- Mappings:
Namespace Name Mixin selector official bLbvu;b(II)Zintermediary method_8393Lnet/minecraft/class_4538;method_8393(II)Znamed isChunkLoadedLnet/minecraft/world/WorldView;isChunkLoaded(II)Z
-
getTopY
int getTopY(Heightmap.Type heightmap, int x, int z)
- Mappings:
Namespace Name Mixin selector official aLbvu;a(Lcor$a;II)Iintermediary method_8624Lnet/minecraft/class_4538;method_8624(Lnet/minecraft/class_2902$class_2903;II)Inamed getTopYLnet/minecraft/world/WorldView;getTopY(Lnet/minecraft/world/Heightmap$Type;II)I
-
getAmbientDarkness
int getAmbientDarkness()
- Mappings:
Namespace Name Mixin selector official bLbvu;b()Iintermediary method_8594Lnet/minecraft/class_4538;method_8594()Inamed getAmbientDarknessLnet/minecraft/world/WorldView;getAmbientDarkness()I
-
getBiomeAccess
BiomeAccess getBiomeAccess()
- Mappings:
Namespace Name Mixin selector official cLbvu;c()Lbws;intermediary method_22385Lnet/minecraft/class_4538;method_22385()Lnet/minecraft/class_4543;named getBiomeAccessLnet/minecraft/world/WorldView;getBiomeAccess()Lnet/minecraft/world/biome/source/BiomeAccess;
-
getBiome
default Biome getBiome(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official uLbvu;u(Lgb;)Lbwq;intermediary method_23753Lnet/minecraft/class_4538;method_23753(Lnet/minecraft/class_2338;)Lnet/minecraft/class_1959;named getBiomeLnet/minecraft/world/WorldView;getBiome(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/biome/Biome;
-
getStatesInBoxIfLoaded
default Stream<BlockState> getStatesInBoxIfLoaded(Box box)
- Mappings:
Namespace Name Mixin selector official cLbvu;c(Ldlv;)Ljava/util/stream/Stream;intermediary method_29556Lnet/minecraft/class_4538;method_29556(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;named getStatesInBoxIfLoadedLnet/minecraft/world/WorldView;getStatesInBoxIfLoaded(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
-
getColor
default int getColor(BlockPos pos, ColorResolver colorResolver)
- 指定者:
getColor在接口中BlockRenderView- Mappings:
Namespace Name Mixin selector official aLbut;a(Lgb;Lnet/minecraft/world/level/ColorResolver;)Iintermediary method_23752Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/world/level/ColorResolver;)Inamed getColorLnet/minecraft/world/BlockRenderView;getColor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/level/ColorResolver;)I
-
getBiomeForNoiseGen
default Biome getBiomeForNoiseGen(int biomeX, int biomeY, int biomeZ)
- 指定者:
getBiomeForNoiseGen在接口中BiomeAccess.Storage- Mappings:
Namespace Name Mixin selector official bLbws$a;b(III)Lbwq;intermediary method_16359Lnet/minecraft/class_4543$class_4544;method_16359(III)Lnet/minecraft/class_1959;named getBiomeForNoiseGenLnet/minecraft/world/biome/source/BiomeAccess$Storage;getBiomeForNoiseGen(III)Lnet/minecraft/world/biome/Biome;
-
getGeneratorStoredBiome
Biome getGeneratorStoredBiome(int biomeX, int biomeY, int biomeZ)
- Mappings:
Namespace Name Mixin selector official aLbvu;a(III)Lbwq;intermediary method_22387Lnet/minecraft/class_4538;method_22387(III)Lnet/minecraft/class_1959;named getGeneratorStoredBiomeLnet/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 s_Lbvu;s_()Zintermediary method_8608Lnet/minecraft/class_4538;method_8608()Znamed isClientLnet/minecraft/world/WorldView;isClient()Z
-
getSeaLevel
@Deprecated int getSeaLevel()
已过时。- Mappings:
Namespace Name Mixin selector official u_Lbvu;u_()Iintermediary method_8615Lnet/minecraft/class_4538;method_8615()Inamed getSeaLevelLnet/minecraft/world/WorldView;getSeaLevel()I
-
getDimension
DimensionType getDimension()
- Mappings:
Namespace Name Mixin selector official kLbvu;k()Lcmt;intermediary method_8597Lnet/minecraft/class_4538;method_8597()Lnet/minecraft/class_2874;named getDimensionLnet/minecraft/world/WorldView;getDimension()Lnet/minecraft/world/dimension/DimensionType;
-
getBottomY
default int getBottomY()
Returns the bottom Y level, or height, inclusive, of this view.- 指定者:
getBottomY在接口中HeightLimitView- 另请参阅:
HeightLimitView.getTopY(),HeightLimitView.getHeight()- Mappings:
Namespace Name Mixin selector official v_Lbvt;v_()Iintermediary method_31607Lnet/minecraft/class_5539;method_31607()Inamed getBottomYLnet/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.
- 指定者:
getHeight在接口中HeightLimitView- 返回:
- the difference in the minimum and maximum height
- 另请参阅:
HeightLimitView.getBottomY(),HeightLimitView.getTopY()- Mappings:
Namespace Name Mixin selector official mLbvt;m()Iintermediary method_31605Lnet/minecraft/class_5539;method_31605()Inamed getHeightLnet/minecraft/world/HeightLimitView;getHeight()I
-
getTopPosition
default BlockPos getTopPosition(Heightmap.Type heightmap, BlockPos pos)
- Mappings:
Namespace Name Mixin selector official aLbvu;a(Lcor$a;Lgb;)Lgb;intermediary method_8598Lnet/minecraft/class_4538;method_8598(Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;named getTopPositionLnet/minecraft/world/WorldView;getTopPosition(Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
-
isAir
default boolean isAir(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official vLbvu;v(Lgb;)Zintermediary method_22347Lnet/minecraft/class_4538;method_22347(Lnet/minecraft/class_2338;)Znamed isAirLnet/minecraft/world/WorldView;isAir(Lnet/minecraft/util/math/BlockPos;)Z
-
isSkyVisibleAllowingSea
default boolean isSkyVisibleAllowingSea(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official wLbvu;w(Lgb;)Zintermediary method_22348Lnet/minecraft/class_4538;method_22348(Lnet/minecraft/class_2338;)Znamed isSkyVisibleAllowingSeaLnet/minecraft/world/WorldView;isSkyVisibleAllowingSea(Lnet/minecraft/util/math/BlockPos;)Z
-
getBrightness
@Deprecated default float getBrightness(BlockPos pos)
已过时。- Mappings:
Namespace Name Mixin selector official xLbvu;x(Lgb;)Fintermediary method_22349Lnet/minecraft/class_4538;method_22349(Lnet/minecraft/class_2338;)Fnamed getBrightnessLnet/minecraft/world/WorldView;getBrightness(Lnet/minecraft/util/math/BlockPos;)F
-
getStrongRedstonePower
default int getStrongRedstonePower(BlockPos pos, Direction direction)
- Mappings:
Namespace Name Mixin selector official cLbvu;c(Lgb;Lgg;)Iintermediary method_22344Lnet/minecraft/class_4538;method_22344(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Inamed getStrongRedstonePowerLnet/minecraft/world/WorldView;getStrongRedstonePower(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
-
getChunk
default Chunk getChunk(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official yLbvu;y(Lgb;)Lclk;intermediary method_22350Lnet/minecraft/class_4538;method_22350(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/WorldView;getChunk(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/chunk/Chunk;
-
getChunk
default Chunk getChunk(int chunkX, int chunkZ)
- Mappings:
Namespace Name Mixin selector official aLbvu;a(II)Lclk;intermediary method_8392Lnet/minecraft/class_4538;method_8392(II)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/WorldView;getChunk(II)Lnet/minecraft/world/chunk/Chunk;
-
getChunk
default Chunk getChunk(int chunkX, int chunkZ, ChunkStatus status)
- Mappings:
Namespace Name Mixin selector official aLbvu;a(IILclo;)Lclk;intermediary method_22342Lnet/minecraft/class_4538;method_22342(IILnet/minecraft/class_2806;)Lnet/minecraft/class_2791;named getChunkLnet/minecraft/world/WorldView;getChunk(IILnet/minecraft/world/chunk/ChunkStatus;)Lnet/minecraft/world/chunk/Chunk;
-
getChunkAsView
@Nullable default @Nullable BlockView getChunkAsView(int chunkX, int chunkZ)
- 指定者:
getChunkAsView在接口中CollisionView- Mappings:
Namespace Name Mixin selector official cLbva;c(II)Lbuv;intermediary method_22338Lnet/minecraft/class_1941;method_22338(II)Lnet/minecraft/class_1922;named getChunkAsViewLnet/minecraft/world/CollisionView;getChunkAsView(II)Lnet/minecraft/world/BlockView;
-
isWater
default boolean isWater(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official zLbvu;z(Lgb;)Zintermediary method_22351Lnet/minecraft/class_4538;method_22351(Lnet/minecraft/class_2338;)Znamed isWaterLnet/minecraft/world/WorldView;isWater(Lnet/minecraft/util/math/BlockPos;)Z
-
containsFluid
default boolean containsFluid(Box box)
- Mappings:
Namespace Name Mixin selector official dLbvu;d(Ldlv;)Zintermediary method_22345Lnet/minecraft/class_4538;method_22345(Lnet/minecraft/class_238;)Znamed containsFluidLnet/minecraft/world/WorldView;containsFluid(Lnet/minecraft/util/math/Box;)Z
-
getLightLevel
default int getLightLevel(BlockPos pos)
- Mappings:
Namespace Name Mixin selector official ALbvu;A(Lgb;)Iintermediary method_22339Lnet/minecraft/class_4538;method_22339(Lnet/minecraft/class_2338;)Inamed getLightLevelLnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I
-
getLightLevel
default int getLightLevel(BlockPos pos, int ambientDarkness)
- Mappings:
Namespace Name Mixin selector official cLbvu;c(Lgb;I)Iintermediary method_22346Lnet/minecraft/class_4538;method_22346(Lnet/minecraft/class_2338;I)Inamed getLightLevelLnet/minecraft/world/WorldView;getLightLevel(Lnet/minecraft/util/math/BlockPos;I)I
-
isPosLoaded
@Deprecated default boolean isPosLoaded(int x, int z)
已过时。- Mappings:
Namespace Name Mixin selector official eLbvu;e(II)Zintermediary method_33598Lnet/minecraft/class_4538;method_33598(II)Znamed isPosLoadedLnet/minecraft/world/WorldView;isPosLoaded(II)Z
-
isChunkLoaded
@Deprecated default boolean isChunkLoaded(BlockPos pos)
已过时。- Mappings:
Namespace Name Mixin selector official BLbvu;B(Lgb;)Zintermediary method_22340Lnet/minecraft/class_4538;method_22340(Lnet/minecraft/class_2338;)Znamed isChunkLoadedLnet/minecraft/world/WorldView;isChunkLoaded(Lnet/minecraft/util/math/BlockPos;)Z
-
isRegionLoaded
@Deprecated default boolean isRegionLoaded(BlockPos min, BlockPos max)
已过时。- Mappings:
Namespace Name Mixin selector official aLbvu;a(Lgb;Lgb;)Zintermediary method_22343Lnet/minecraft/class_4538;method_22343(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Znamed isRegionLoadedLnet/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)
已过时。- Mappings:
Namespace Name Mixin selector official aLbvu;a(IIIIII)Zintermediary method_22341Lnet/minecraft/class_4538;method_22341(IIIIII)Znamed isRegionLoadedLnet/minecraft/world/WorldView;isRegionLoaded(IIIIII)Z
-
isRegionLoaded
@Deprecated default boolean isRegionLoaded(int minX, int minZ, int maxX, int maxZ)
已过时。- Mappings:
Namespace Name Mixin selector official bLbvu;b(IIII)Zintermediary method_33597Lnet/minecraft/class_4538;method_33597(IIII)Znamed isRegionLoadedLnet/minecraft/world/WorldView;isRegionLoaded(IIII)Z
-
-