Interface WorldView

All Superinterfaces:
BiomeAccess.Storage, BlockRenderView, BlockView, CollisionView, HeightLimitView
All Known Subinterfaces:
class_5423, LunarWorldView, ServerWorldAccess, StructureWorldAccess, WorldAccess
All Known Implementing Classes:
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 bty
intermediary net/minecraft/class_4538
named net/minecraft/world/WorldView
  • Method Details

    • getChunk

      @Nullable Chunk getChunk​(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create)
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(IILcjp;Z)Lcjl;
      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 boolean isChunkLoaded​(int chunkX, int chunkZ)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official b Lbty;b(II)Z
      intermediary method_8393 Lnet/minecraft/class_4538;method_8393(II)Z
      named isChunkLoaded Lnet/minecraft/world/WorldView;isChunkLoaded(II)Z
    • getTopY

      int getTopY​(Heightmap.Type heightmap, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(Lcmm$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 b Lbty;b()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 c Lbty;c()Lbuw;
      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

      default Biome getBiome​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official u Lbty;u(Lfx;)Lbuu;
      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;
    • method_29556

      default Stream<BlockState> method_29556​(Box box)
      Mappings:
      Namespace Name Mixin selector
      official c Lbty;c(Ldip;)Ljava/util/stream/Stream;
      intermediary method_29556 Lnet/minecraft/class_4538;method_29556(Lnet/minecraft/class_238;)Ljava/util/stream/Stream;
      named method_29556 Lnet/minecraft/world/WorldView;method_29556(Lnet/minecraft/util/math/Box;)Ljava/util/stream/Stream;
    • getColor

      @Environment(CLIENT) default int getColor​(BlockPos pos, ColorResolver colorResolver)
      Specified by:
      getColor in interface BlockRenderView
      Mappings:
      Namespace Name Mixin selector
      official a Lbsx;a(Lfx;Lnet/minecraft/world/level/ColorResolver;)I
      intermediary method_23752 Lnet/minecraft/class_1920;method_23752(Lnet/minecraft/class_2338;Lnet/minecraft/world/level/ColorResolver;)I
      named getColor Lnet/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)
      Specified by:
      getBiomeForNoiseGen in interface BiomeAccess.Storage
      Mappings:
      Namespace Name Mixin selector
      official b Lbuw$a;b(III)Lbuu;
      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

      Biome getGeneratorStoredBiome​(int biomeX, int biomeY, int biomeZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(III)Lbuu;
      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 t_ Lbty;t_()Z
      intermediary method_8608 Lnet/minecraft/class_4538;method_8608()Z
      named isClient Lnet/minecraft/world/WorldView;isClient()Z
    • getSeaLevel

      @Deprecated int getSeaLevel()
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official v_ Lbty;v_()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 k Lbty;k()Lckt;
      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;
    • getBottomSectionLimit

      default int getBottomSectionLimit()
      Specified by:
      getBottomSectionLimit in interface HeightLimitView
      Mappings:
      Namespace Name Mixin selector
      official w_ Lbtx;w_()I
      intermediary method_31607 Lnet/minecraft/class_5539;method_31607()I
      named getBottomSectionLimit Lnet/minecraft/world/HeightLimitView;getBottomSectionLimit()I
    • getSectionCount

      default int getSectionCount()
      Specified by:
      getSectionCount in interface HeightLimitView
      Mappings:
      Namespace Name Mixin selector
      official m Lbtx;m()I
      intermediary method_31605 Lnet/minecraft/class_5539;method_31605()I
      named getSectionCount Lnet/minecraft/world/HeightLimitView;getSectionCount()I
    • getTopPosition

      default BlockPos getTopPosition​(Heightmap.Type heightmap, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(Lcmm$a;Lfx;)Lfx;
      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

      default boolean isAir​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official v Lbty;v(Lfx;)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

      default boolean isSkyVisibleAllowingSea​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official w Lbty;w(Lfx;)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 default float getBrightness​(BlockPos pos)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official x Lbty;x(Lfx;)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

      default int getStrongRedstonePower​(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official c Lbty;c(Lfx;Lgc;)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

      default Chunk getChunk​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official y Lbty;y(Lfx;)Lcjl;
      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

      default Chunk getChunk​(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(II)Lcjl;
      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

      default Chunk getChunk​(int chunkX, int chunkZ, ChunkStatus status)
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(IILcjp;)Lcjl;
      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

      @Nullable default BlockView getChunkAsView​(int chunkX, int chunkZ)
      Specified by:
      getChunkAsView in interface CollisionView
      Mappings:
      Namespace Name Mixin selector
      official c Lbte;c(II)Lbsz;
      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

      default boolean isWater​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official z Lbty;z(Lfx;)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

      default boolean containsFluid​(Box box)
      Mappings:
      Namespace Name Mixin selector
      official d Lbty;d(Ldip;)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

      default int getLightLevel​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official A Lbty;A(Lfx;)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

      default int getLightLevel​(BlockPos pos, int ambientDarkness)
      Mappings:
      Namespace Name Mixin selector
      official c Lbty;c(Lfx;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
    • method_33598

      @Deprecated default boolean method_33598​(int int2, int int3)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official e Lbty;e(II)Z
      intermediary method_33598 Lnet/minecraft/class_4538;method_33598(II)Z
      named method_33598 Lnet/minecraft/world/WorldView;method_33598(II)Z
    • isChunkLoaded

      @Deprecated default boolean isChunkLoaded​(BlockPos pos)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official B Lbty;B(Lfx;)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 default boolean isRegionLoaded​(BlockPos min, BlockPos max)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(Lfx;Lfx;)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 int2, int minY, int int3, int int4, int maxY, int int5)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official a Lbty;a(IIIIII)Z
      intermediary method_22341 Lnet/minecraft/class_4538;method_22341(IIIIII)Z
      named isRegionLoaded Lnet/minecraft/world/WorldView;isRegionLoaded(IIIIII)Z
    • method_33597

      @Deprecated default boolean method_33597​(int int2, int int3, int int4, int int5)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      official b Lbty;b(IIII)Z
      intermediary method_33597 Lnet/minecraft/class_4538;method_33597(IIII)Z
      named method_33597 Lnet/minecraft/world/WorldView;method_33597(IIII)Z