Class ForgeModelBlockRenderer
java.lang.Object
net.minecraft.client.renderer.block.ModelBlockRenderer
net.minecraftforge.client.model.lighting.ForgeModelBlockRenderer
Wrapper around
ModelBlockRenderer
to allow rendering blocks via Forge's lighting pipeline.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.renderer.block.ModelBlockRenderer
ModelBlockRenderer.AdjacencyInfo, ModelBlockRenderer.SizeInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ThreadLocal
<QuadLighter> private static final Direction[]
private final ThreadLocal
<QuadLighter> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
render
(VertexConsumer vertexConsumer, QuadLighter lighter, BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
tesselateWithAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) void
tesselateWithoutAO
(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) Methods inherited from class net.minecraft.client.renderer.block.ModelBlockRenderer
clearCache, enableCaching, renderModel, renderModel, tesselateBlock, tesselateBlock, tesselateWithAO, tesselateWithoutAO
-
Field Details
-
SIDES
-
flatLighter
-
smoothLighter
-
-
Constructor Details
-
ForgeModelBlockRenderer
-
-
Method Details
-
tesselateWithoutAO
public void tesselateWithoutAO(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) - Overrides:
tesselateWithoutAO
in classModelBlockRenderer
-
tesselateWithAO
public void tesselateWithAO(BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, VertexConsumer vertexConsumer, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType) - Overrides:
tesselateWithAO
in classModelBlockRenderer
-
render
public static boolean render(VertexConsumer vertexConsumer, QuadLighter lighter, BlockAndTintGetter level, BakedModel model, BlockState state, BlockPos pos, PoseStack poseStack, boolean checkSides, RandomSource rand, long seed, int packedOverlay, ModelData modelData, RenderType renderType)
-