Class BlockModelRenderer
java.lang.Object
net.minecraft.client.render.block.BlockModelRenderer
@Environment(CLIENT) public class BlockModelRenderer extends Object
- Mappings:
Namespace Name official eij
intermediary net/minecraft/class_778
named net/minecraft/client/render/block/BlockModelRenderer
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
BlockModelRenderer.AmbientOcclusionCalculator
(package private) static class
BlockModelRenderer.BrightnessCache
static class
BlockModelRenderer.NeighborData
static class
BlockModelRenderer.NeighborOrientation
(package private) static class
BlockModelRenderer.Translation
-
Field Summary
Fields Modifier and Type Field Description private static ThreadLocal<BlockModelRenderer.BrightnessCache>
brightnessCache
private BlockColors
colorMap
private static Direction[]
DIRECTIONS
-
Constructor Summary
Constructors Constructor Description BlockModelRenderer(BlockColors colorMap)
-
Method Summary
Modifier and Type Method Description static void
disableBrightnessCache()
static void
enableBrightnessCache()
private void
getQuadDimensions(BlockRenderView world, BlockState state, BlockPos pos, int[] vertexData, Direction face, float[] box, BitSet flags)
void
render(MatrixStack.Entry entry, VertexConsumer vertexConsumer, BlockState blockState, BakedModel bakedModel, float float2, float float3, float float4, int int2, int int3)
boolean
render(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrix, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay)
boolean
renderFlat(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack buffer, VertexConsumer vertexConsumer, boolean cull, Random random, long long2, int int2)
private static void
renderQuad(MatrixStack.Entry entry, VertexConsumer vertexConsumer, float float2, float float3, float float4, List<BakedQuad> list, int int2, int int3)
private void
renderQuad(BlockRenderView world, BlockState state, BlockPos pos, VertexConsumer vertexConsumer, MatrixStack.Entry matrixEntry, BakedQuad quad, float brightness0, float brightness1, float brightness2, float brightness3, int light0, int light1, int light2, int light3, int overlay)
private void
renderQuadsFlat(BlockRenderView world, BlockState state, BlockPos pos, int light, int overlay, boolean useWorldLight, MatrixStack matrices, VertexConsumer vertexConsumer, List<BakedQuad> quads, BitSet flags)
private void
renderQuadsSmooth(BlockRenderView world, BlockState state, BlockPos pos, MatrixStack matrix, VertexConsumer vertexConsumer, List<BakedQuad> quads, float[] box, BitSet flags, BlockModelRenderer.AmbientOcclusionCalculator ambientOcclusionCalculator, int overlay)
boolean
renderSmooth(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack buffer, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay)
-
Field Details
-
DIRECTIONS
- Mappings:
Namespace Name Mixin selector official a
Leij;a:[Lgc;
intermediary field_27743
Lnet/minecraft/class_778;field_27743:[Lnet/minecraft/class_2350;
named DIRECTIONS
Lnet/minecraft/client/render/block/BlockModelRenderer;DIRECTIONS:[Lnet/minecraft/util/math/Direction;
-
brightnessCache
- Mappings:
Namespace Name Mixin selector official c
Leij;c:Ljava/lang/ThreadLocal;
intermediary field_4179
Lnet/minecraft/class_778;field_4179:Ljava/lang/ThreadLocal;
named brightnessCache
Lnet/minecraft/client/render/block/BlockModelRenderer;brightnessCache:Ljava/lang/ThreadLocal;
-
colorMap
- Mappings:
Namespace Name Mixin selector official b
Leij;b:Ldqz;
intermediary field_4178
Lnet/minecraft/class_778;field_4178:Lnet/minecraft/class_324;
named colorMap
Lnet/minecraft/client/render/block/BlockModelRenderer;colorMap:Lnet/minecraft/client/color/block/BlockColors;
-
-
Constructor Details
-
BlockModelRenderer
- Mappings:
Namespace Name Mixin selector official <init>
Leij;<init>(Ldqz;)V
intermediary <init>
Lnet/minecraft/class_778;<init>(Lnet/minecraft/class_324;)V
named <init>
Lnet/minecraft/client/render/block/BlockModelRenderer;<init>(Lnet/minecraft/client/color/block/BlockColors;)V
-
-
Method Details
-
render
public boolean render(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack matrix, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Lbsx;Letg;Lcht;Lfx;Ldlr;Ldlv;ZLjava/util/Random;JI)Z
intermediary method_3374
Lnet/minecraft/class_778;method_3374(Lnet/minecraft/class_1920;Lnet/minecraft/class_1087;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;ZLjava/util/Random;JI)Z
named render
Lnet/minecraft/client/render/block/BlockModelRenderer;render(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;ZLjava/util/Random;JI)Z
-
renderSmooth
public boolean renderSmooth(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack buffer, VertexConsumer vertexConsumer, boolean cull, Random random, long seed, int overlay)- Mappings:
Namespace Name Mixin selector official b
Leij;b(Lbsx;Letg;Lcht;Lfx;Ldlr;Ldlv;ZLjava/util/Random;JI)Z
intermediary method_3361
Lnet/minecraft/class_778;method_3361(Lnet/minecraft/class_1920;Lnet/minecraft/class_1087;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;ZLjava/util/Random;JI)Z
named renderSmooth
Lnet/minecraft/client/render/block/BlockModelRenderer;renderSmooth(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;ZLjava/util/Random;JI)Z
-
renderFlat
public boolean renderFlat(BlockRenderView world, BakedModel model, BlockState state, BlockPos pos, MatrixStack buffer, VertexConsumer vertexConsumer, boolean cull, Random random, long long2, int int2)- Mappings:
Namespace Name Mixin selector official c
Leij;c(Lbsx;Letg;Lcht;Lfx;Ldlr;Ldlv;ZLjava/util/Random;JI)Z
intermediary method_3373
Lnet/minecraft/class_778;method_3373(Lnet/minecraft/class_1920;Lnet/minecraft/class_1087;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;ZLjava/util/Random;JI)Z
named renderFlat
Lnet/minecraft/client/render/block/BlockModelRenderer;renderFlat(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/client/render/model/BakedModel;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;ZLjava/util/Random;JI)Z
-
renderQuadsSmooth
private void renderQuadsSmooth(BlockRenderView world, BlockState state, BlockPos pos, MatrixStack matrix, VertexConsumer vertexConsumer, List<BakedQuad> quads, float[] box, BitSet flags, BlockModelRenderer.AmbientOcclusionCalculator ambientOcclusionCalculator, int overlay)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Lbsx;Lcht;Lfx;Ldlr;Ldlv;Ljava/util/List;[FLjava/util/BitSet;Leij$b;I)V
intermediary method_3363
Lnet/minecraft/class_778;method_3363(Lnet/minecraft/class_1920;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_4587;Lnet/minecraft/class_4588;Ljava/util/List;[FLjava/util/BitSet;Lnet/minecraft/class_778$class_780;I)V
named renderQuadsSmooth
Lnet/minecraft/client/render/block/BlockModelRenderer;renderQuadsSmooth(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;Ljava/util/List;[FLjava/util/BitSet;Lnet/minecraft/client/render/block/BlockModelRenderer$AmbientOcclusionCalculator;I)V
-
renderQuad
private void renderQuad(BlockRenderView world, BlockState state, BlockPos pos, VertexConsumer vertexConsumer, MatrixStack.Entry matrixEntry, BakedQuad quad, float brightness0, float brightness1, float brightness2, float brightness3, int light0, int light1, int light2, int light3, int overlay)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Lbsx;Lcht;Lfx;Ldlv;Ldlr$a;Leik;FFFFIIIII)V
intermediary method_23073
Lnet/minecraft/class_778;method_23073(Lnet/minecraft/class_1920;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;Lnet/minecraft/class_4588;Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_777;FFFFIIIII)V
named renderQuad
Lnet/minecraft/client/render/block/BlockModelRenderer;renderQuad(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/util/math/MatrixStack$Entry;Lnet/minecraft/client/render/model/BakedQuad;FFFFIIIII)V
-
getQuadDimensions
private void getQuadDimensions(BlockRenderView world, BlockState state, BlockPos pos, int[] vertexData, Direction face, @Nullable float[] box, BitSet flags)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Lbsx;Lcht;Lfx;[ILgc;[FLjava/util/BitSet;)V
intermediary method_3364
Lnet/minecraft/class_778;method_3364(Lnet/minecraft/class_1920;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;[ILnet/minecraft/class_2350;[FLjava/util/BitSet;)V
named getQuadDimensions
Lnet/minecraft/client/render/block/BlockModelRenderer;getQuadDimensions(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;[ILnet/minecraft/util/math/Direction;[FLjava/util/BitSet;)V
-
renderQuadsFlat
private void renderQuadsFlat(BlockRenderView world, BlockState state, BlockPos pos, int light, int overlay, boolean useWorldLight, MatrixStack matrices, VertexConsumer vertexConsumer, List<BakedQuad> quads, BitSet flags)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Lbsx;Lcht;Lfx;IIZLdlr;Ldlv;Ljava/util/List;Ljava/util/BitSet;)V
intermediary method_3370
Lnet/minecraft/class_778;method_3370(Lnet/minecraft/class_1920;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;IIZLnet/minecraft/class_4587;Lnet/minecraft/class_4588;Ljava/util/List;Ljava/util/BitSet;)V
named renderQuadsFlat
Lnet/minecraft/client/render/block/BlockModelRenderer;renderQuadsFlat(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;IIZLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumer;Ljava/util/List;Ljava/util/BitSet;)V
-
render
public void render(MatrixStack.Entry entry, VertexConsumer vertexConsumer, @Nullable BlockState blockState, BakedModel bakedModel, float float2, float float3, float float4, int int2, int int3)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Ldlr$a;Ldlv;Lcht;Letg;FFFII)V
intermediary method_3367
Lnet/minecraft/class_778;method_3367(Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_4588;Lnet/minecraft/class_2680;Lnet/minecraft/class_1087;FFFII)V
named render
Lnet/minecraft/client/render/block/BlockModelRenderer;render(Lnet/minecraft/client/util/math/MatrixStack$Entry;Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/block/BlockState;Lnet/minecraft/client/render/model/BakedModel;FFFII)V
-
renderQuad
private static void renderQuad(MatrixStack.Entry entry, VertexConsumer vertexConsumer, float float2, float float3, float float4, List<BakedQuad> list, int int2, int int3)- Mappings:
Namespace Name Mixin selector official a
Leij;a(Ldlr$a;Ldlv;FFFLjava/util/List;II)V
intermediary method_3365
Lnet/minecraft/class_778;method_3365(Lnet/minecraft/class_4587$class_4665;Lnet/minecraft/class_4588;FFFLjava/util/List;II)V
named renderQuad
Lnet/minecraft/client/render/block/BlockModelRenderer;renderQuad(Lnet/minecraft/client/util/math/MatrixStack$Entry;Lnet/minecraft/client/render/VertexConsumer;FFFLjava/util/List;II)V
-
enableBrightnessCache
public static void enableBrightnessCache()- Mappings:
Namespace Name Mixin selector official a
Leij;a()V
intermediary method_20544
Lnet/minecraft/class_778;method_20544()V
named enableBrightnessCache
Lnet/minecraft/client/render/block/BlockModelRenderer;enableBrightnessCache()V
-
disableBrightnessCache
public static void disableBrightnessCache()- Mappings:
Namespace Name Mixin selector official b
Leij;b()V
intermediary method_20545
Lnet/minecraft/class_778;method_20545()V
named disableBrightnessCache
Lnet/minecraft/client/render/block/BlockModelRenderer;disableBrightnessCache()V
-