Class ChunkRendererRegion
java.lang.Object
net.minecraft.client.render.chunk.ChunkRendererRegion
- All Implemented Interfaces:
BlockRenderView,BlockView,HeightLimitView
- Mappings:
Namespace Name named net/minecraft/client/render/chunk/ChunkRendererRegionintermediary net/minecraft/class_853official ghx
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RenderedChunk[]private final intprivate final intstatic final intstatic final intprotected final World -
Constructor Summary
ConstructorsConstructorDescriptionChunkRendererRegion(World world, int chunkX, int chunkZ, RenderedChunk[] chunks) -
Method Summary
Modifier and TypeMethodDescriptiongetBlockEntity(BlockPos pos) Returns the block entity atpos, ornullif there is none.getBlockState(BlockPos pos) Returns the block state atpos.intReturns the bottom Y level, or height, inclusive, of this view.floatgetBrightness(Direction direction, boolean shaded) intgetColor(BlockPos pos, ColorResolver colorResolver) getFluidState(BlockPos pos) Returns the fluid state atpos.intstatic intgetIndex(int xOffset, int zOffset, int x, int z) private RenderedChunkgetRenderedChunk(int x, int z) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.BlockRenderView
getBaseLightLevel, getLightLevel, isSkyVisibleMethods inherited from interface net.minecraft.world.BlockView
getBlockEntity, getDismountHeight, getDismountHeight, getLuminance, getMaxLightLevel, getStatesInBox, raycast, raycast, raycastBlockMethods inherited from interface net.minecraft.world.HeightLimitView
countVerticalSections, getBottomSectionCoord, getSectionIndex, getTopSectionCoord, getTopY, isOutOfHeightLimit, isOutOfHeightLimit, sectionCoordToIndex, sectionIndexToCoord
-
Field Details
-
field_52160
public static final int field_52160- See Also:
- Mappings:
Namespace Name Mixin selector named field_52160Lnet/minecraft/client/render/chunk/ChunkRendererRegion;field_52160:Iintermediary field_52160Lnet/minecraft/class_853;field_52160:Iofficial aLghx;a:I
-
field_52161
public static final int field_52161- See Also:
- Mappings:
Namespace Name Mixin selector named field_52161Lnet/minecraft/client/render/chunk/ChunkRendererRegion;field_52161:Iintermediary field_52161Lnet/minecraft/class_853;field_52161:Iofficial bLghx;b:I
-
chunkXOffset
private final int chunkXOffset- Mappings:
Namespace Name Mixin selector named chunkXOffsetLnet/minecraft/client/render/chunk/ChunkRendererRegion;chunkXOffset:Iintermediary field_52162Lnet/minecraft/class_853;field_52162:Iofficial eLghx;e:I
-
chunkZOffset
private final int chunkZOffset- Mappings:
Namespace Name Mixin selector named chunkZOffsetLnet/minecraft/client/render/chunk/ChunkRendererRegion;chunkZOffset:Iintermediary field_52163Lnet/minecraft/class_853;field_52163:Iofficial fLghx;f:I
-
chunks
- Mappings:
Namespace Name Mixin selector named chunksLnet/minecraft/client/render/chunk/ChunkRendererRegion;chunks:[Lnet/minecraft/client/render/chunk/RenderedChunk;intermediary field_4483Lnet/minecraft/class_853;field_4483:[Lnet/minecraft/class_6849;official cLghx;c:[Lghw;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/client/render/chunk/ChunkRendererRegion;world:Lnet/minecraft/world/World;intermediary field_4490Lnet/minecraft/class_853;field_4490:Lnet/minecraft/class_1937;official dLghx;d:Ldcw;
-
-
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;)Vintermediary <init>Lnet/minecraft/class_853;<init>(Lnet/minecraft/class_1937;II[Lnet/minecraft/class_6849;)Vofficial <init>Lghx;<init>(Ldcw;II[Lghw;)V
-
-
Method Details
-
getBlockState
Returns the block state atpos.- Specified by:
getBlockStatein interfaceBlockView- Returns:
- the block state at
pos - Implementation Note:
- This returns the block state for
Blocks.VOID_AIRif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getBlockStateLnet/minecraft/world/BlockView;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;intermediary method_8320Lnet/minecraft/class_1922;method_8320(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;official a_Ldcc;a_(Ljd;)Ldtc;
-
getFluidState
Returns the fluid state atpos.- Specified by:
getFluidStatein interfaceBlockView- Returns:
- the fluid state at
pos - Implementation Note:
- This returns the fluid state for
Fluids.EMPTYif the Y coordinate is outside the height limit. - Mappings:
Namespace Name Mixin selector named getFluidStateLnet/minecraft/world/BlockView;getFluidState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/fluid/FluidState;intermediary method_8316Lnet/minecraft/class_1922;method_8316(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3610;official b_Ldcc;b_(Ljd;)Lepe;
-
getBrightness
- Specified by:
getBrightnessin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector named getBrightnessLnet/minecraft/world/BlockRenderView;getBrightness(Lnet/minecraft/util/math/Direction;Z)Fintermediary method_24852Lnet/minecraft/class_1920;method_24852(Lnet/minecraft/class_2350;Z)Fofficial aLdbz;a(Lji;Z)F
-
getLightingProvider
- Specified by:
getLightingProviderin interfaceBlockRenderView- Mappings:
Namespace Name Mixin selector named getLightingProviderLnet/minecraft/world/BlockRenderView;getLightingProvider()Lnet/minecraft/world/chunk/light/LightingProvider;intermediary method_22336Lnet/minecraft/class_1920;method_22336()Lnet/minecraft/class_3568;official y_Ldbz;y_()Leot;
-
getBlockEntity
Returns the block entity atpos, ornullif there is none.- Specified by:
getBlockEntityin interfaceBlockView- Returns:
- the block entity at
pos, ornullif there is none - Mappings:
Namespace Name Mixin selector named getBlockEntityLnet/minecraft/world/BlockView;getBlockEntity(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/entity/BlockEntity;intermediary method_8321Lnet/minecraft/class_1922;method_8321(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2586;official c_Ldcc;c_(Ljd;)Ldqh;
-
getRenderedChunk
- Mappings:
Namespace Name Mixin selector named getRenderedChunkLnet/minecraft/client/render/chunk/ChunkRendererRegion;getRenderedChunk(II)Lnet/minecraft/client/render/chunk/RenderedChunk;intermediary method_60898Lnet/minecraft/class_853;method_60898(II)Lnet/minecraft/class_6849;official aLghx;a(II)Lghw;
-
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 aLdbz;a(Ljd;Ldch;)I
-
getBottomY
public 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 I_Ldcy;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:
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 J_Ldcy;J_()I
-
getIndex
public static int getIndex(int xOffset, int zOffset, int x, int z) - Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/client/render/chunk/ChunkRendererRegion;getIndex(IIII)Iintermediary method_60899Lnet/minecraft/class_853;method_60899(IIII)Iofficial aLghx;a(IIII)I
-