Class ChunkRendererRegion

java.lang.Object
net.minecraft.client.render.chunk.ChunkRendererRegion
All Implemented Interfaces:
BlockRenderView, BlockView, HeightLimitView

@Environment(CLIENT) public class ChunkRendererRegion extends Object implements BlockRenderView
Mappings:
Namespace Name
named net/minecraft/client/render/chunk/ChunkRendererRegion
intermediary net/minecraft/class_853
official ghr
  • Field Details

    • field_52160

      public static final int field_52160
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52160 Lnet/minecraft/client/render/chunk/ChunkRendererRegion;field_52160:I
      intermediary field_52160 Lnet/minecraft/class_853;field_52160:I
      official a Lghr;a:I
    • field_52161

      public static final int field_52161
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52161 Lnet/minecraft/client/render/chunk/ChunkRendererRegion;field_52161:I
      intermediary field_52161 Lnet/minecraft/class_853;field_52161:I
      official b Lghr;b:I
    • field_52162

      private final int field_52162
      Mappings:
      Namespace Name Mixin selector
      named field_52162 Lnet/minecraft/client/render/chunk/ChunkRendererRegion;field_52162:I
      intermediary field_52162 Lnet/minecraft/class_853;field_52162:I
      official e Lghr;e:I
    • field_52163

      private final int field_52163
      Mappings:
      Namespace Name Mixin selector
      named field_52163 Lnet/minecraft/client/render/chunk/ChunkRendererRegion;field_52163:I
      intermediary field_52163 Lnet/minecraft/class_853;field_52163:I
      official f Lghr;f:I
    • chunks

      protected final RenderedChunk[] chunks
      Mappings:
      Namespace Name Mixin selector
      named chunks Lnet/minecraft/client/render/chunk/ChunkRendererRegion;chunks:[Lnet/minecraft/client/render/chunk/RenderedChunk;
      intermediary field_4483 Lnet/minecraft/class_853;field_4483:[Lnet/minecraft/class_6849;
      official c Lghr;c:[Lghq;
    • world

      protected final World world
      Mappings:
      Namespace Name Mixin selector
      named world Lnet/minecraft/client/render/chunk/ChunkRendererRegion;world:Lnet/minecraft/world/World;
      intermediary field_4490 Lnet/minecraft/class_853;field_4490:Lnet/minecraft/class_1937;
      official d Lghr;d:Ldcu;
  • Constructor Details

    • ChunkRendererRegion

      ChunkRendererRegion(World world, int chunkX, int chunkZ, RenderedChunk[] chunks)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/chunk/ChunkRendererRegion;<init>(Lnet/minecraft/world/World;II[Lnet/minecraft/client/render/chunk/RenderedChunk;)V
      intermediary <init> Lnet/minecraft/class_853;<init>(Lnet/minecraft/class_1937;II[Lnet/minecraft/class_6849;)V
      official <init> Lghr;<init>(Ldcu;II[Lghq;)V
  • Method Details

    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Returns the block state at pos.
      Specified by:
      getBlockState in interface BlockView
      Returns:
      the block state at pos
      Implementation Note:
      This returns the block state for Blocks.VOID_AIR if the Y coordinate is outside the height limit.
      Mappings:
      Namespace Name Mixin selector
      named getBlockState Lnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
      intermediary method_8320 Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      official a_ Ldca;a_(Ljd;)Ldta;
    • getFluidState

      public FluidState getFluidState(BlockPos pos)
      Returns the fluid state at pos.
      Specified by:
      getFluidState in interface BlockView
      Returns:
      the fluid state at pos
      Implementation Note:
      This returns the fluid state for Fluids.EMPTY if the Y coordinate is outside the height limit.
      Mappings:
      Namespace Name Mixin selector
      named getFluidState Lnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;
      intermediary method_8316 Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;
      official b_ Ldca;b_(Ljd;)Leoy;
    • getBrightness

      public float getBrightness(Direction direction, boolean shaded)
      Specified by:
      getBrightness in interface BlockRenderView
      Mappings:
      Namespace Name Mixin selector
      named getBrightness Lnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)F
      intermediary method_24852 Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)F
      official a Ldbx;a(Lji;Z)F
    • getLightingProvider

      public LightingProvider getLightingProvider()
      Specified by:
      getLightingProvider in interface BlockRenderView
      Mappings:
      Namespace Name Mixin selector
      named getLightingProvider Lnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;
      intermediary method_22336 Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;
      official y_ Ldbx;y_()Leon;
    • getBlockEntity

      @Nullable public @Nullable BlockEntity getBlockEntity(BlockPos pos)
      Returns the block entity at pos, or null if there is none.
      Specified by:
      getBlockEntity in interface BlockView
      Returns:
      the block entity at pos, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      named getBlockEntity Lnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;
      intermediary method_8321 Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;
      official c_ Ldca;c_(Ljd;)Ldqf;
    • method_60898

      private RenderedChunk method_60898(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      named method_60898 Lnet/minecraft/client/render/chunk/ChunkRendererRegion;method_60898(II)Lnet/minecraft/client/render/chunk/RenderedChunk;
      intermediary method_60898 Lnet/minecraft/class_853;method_60898(II)Lnet/minecraft/class_6849;
      official a Lghr;a(II)Lghq;
    • getColor

      public int getColor(BlockPos pos, ColorResolver colorResolver)
      Specified by:
      getColor in interface BlockRenderView
      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 Ldbx;a(Ljd;Ldcf;)I
    • getBottomY

      public int getBottomY()
      Returns the bottom Y level, or height, inclusive, of this view.
      Specified by:
      getBottomY in interface HeightLimitView
      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 I_ Ldcw;I_()I
    • getHeight

      public 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 interface HeightLimitView
      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 J_ Ldcw;J_()I
    • method_60899

      public static int method_60899(int int2, int int3, int int4, int int5)
      Mappings:
      Namespace Name Mixin selector
      named method_60899 Lnet/minecraft/client/render/chunk/ChunkRendererRegion;method_60899(IIII)I
      intermediary method_60899 Lnet/minecraft/class_853;method_60899(IIII)I
      official a Lghr;a(IIII)I