Class BlockFeatureRenderer
java.lang.Object
net.minecraft.client.renderer.feature.BlockFeatureRenderer
- Direct Known Subclasses:
ExtendedBlockFeatureRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Direction[]private static final int[]private final List<BlockStateModelPart> private final QuadInstanceprivate final RandomSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidputBakedQuad(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float x, float y, float z, BakedQuad quad, QuadInstance instance, ChunkSectionLayer layer) private static voidputPartQuads(BlockStateModelPart part, PoseStack.Pose pose, QuadInstance quadInstance, int[] tintLayers, VertexConsumer buffer, @Nullable VertexConsumer outlineBuffer) protected static voidputQuad(PoseStack.Pose pose, BakedQuad quad, QuadInstance instance, int[] tintLayers, VertexConsumer buffer, @Nullable VertexConsumer outlineBuffer) private voidrenderBlockModelSubmits(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource, boolean translucent) private voidrenderBreakingBlockModelSubmits(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource) private voidrenderMovingBlockSubmits(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, BlockStateModelSet blockStateModelSet, OptionsRenderState optionsState, boolean translucent) voidrenderSolid(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, BlockStateModelSet blockStateModelSet, OutlineBufferSource outlineBufferSource, OptionsRenderState optionsState) voidrenderTranslucent(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, BlockStateModelSet blockStateModelSet, OutlineBufferSource outlineBufferSource, MultiBufferSource.BufferSource crumblingBufferSource, OptionsRenderState optionsState)
-
Field Details
-
DIRECTIONS
-
NO_TINT
private static final int[] NO_TINT -
quadInstance
-
random
-
parts
-
-
Constructor Details
-
BlockFeatureRenderer
public BlockFeatureRenderer()
-
-
Method Details
-
renderSolid
public void renderSolid(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, BlockStateModelSet blockStateModelSet, OutlineBufferSource outlineBufferSource, OptionsRenderState optionsState) -
renderTranslucent
public void renderTranslucent(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, BlockStateModelSet blockStateModelSet, OutlineBufferSource outlineBufferSource, MultiBufferSource.BufferSource crumblingBufferSource, OptionsRenderState optionsState) -
renderMovingBlockSubmits
private void renderMovingBlockSubmits(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, BlockStateModelSet blockStateModelSet, OptionsRenderState optionsState, boolean translucent) -
putBakedQuad
private static void putBakedQuad(PoseStack poseStack, MultiBufferSource.BufferSource bufferSource, float x, float y, float z, BakedQuad quad, QuadInstance instance, ChunkSectionLayer layer) -
renderBlockModelSubmits
private void renderBlockModelSubmits(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource, OutlineBufferSource outlineBufferSource, boolean translucent) -
renderBreakingBlockModelSubmits
private void renderBreakingBlockModelSubmits(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource) -
putPartQuads
private static void putPartQuads(BlockStateModelPart part, PoseStack.Pose pose, QuadInstance quadInstance, int[] tintLayers, VertexConsumer buffer, @Nullable VertexConsumer outlineBuffer) -
putQuad
protected static void putQuad(PoseStack.Pose pose, BakedQuad quad, QuadInstance instance, int[] tintLayers, VertexConsumer buffer, @Nullable VertexConsumer outlineBuffer)
-