Class ForgeBlockModelRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.BlockModelRenderer
-
- net.minecraftforge.client.model.pipeline.ForgeBlockModelRenderer
-
public class ForgeBlockModelRenderer extends BlockModelRenderer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.client.renderer.BlockModelRenderer
BlockModelRenderer.NeighborInfo, BlockModelRenderer.Orientation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ThreadLocal<VertexBufferConsumer>
consumerFlat
private java.lang.ThreadLocal<VertexBufferConsumer>
consumerSmooth
private java.lang.ThreadLocal<VertexLighterFlat>
lighterFlat
private java.lang.ThreadLocal<VertexLighterSmoothAo>
lighterSmooth
-
Constructor Summary
Constructors Constructor Description ForgeBlockModelRenderer(BlockColors colors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
render(VertexLighterFlat lighter, IBlockDisplayReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, boolean checkSides, java.util.Random rand, long seed, IModelData modelData)
boolean
renderModelFlat(IBlockDisplayReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, IVertexBuilder buffer, boolean checkSides, java.util.Random rand, long seed, int combinedOverlayIn, IModelData modelData)
boolean
renderModelSmooth(IBlockDisplayReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, IVertexBuilder buffer, boolean checkSides, java.util.Random rand, long seed, int combinedOverlayIn, IModelData modelData)
-
Methods inherited from class net.minecraft.client.renderer.BlockModelRenderer
clearCache, enableCaching, renderModel, renderModel, renderModel, tesselateBlock, tesselateWithAO, tesselateWithoutAO
-
-
-
-
Field Detail
-
lighterFlat
private final java.lang.ThreadLocal<VertexLighterFlat> lighterFlat
-
lighterSmooth
private final java.lang.ThreadLocal<VertexLighterSmoothAo> lighterSmooth
-
consumerFlat
private final java.lang.ThreadLocal<VertexBufferConsumer> consumerFlat
-
consumerSmooth
private final java.lang.ThreadLocal<VertexBufferConsumer> consumerSmooth
-
-
Constructor Detail
-
ForgeBlockModelRenderer
public ForgeBlockModelRenderer(BlockColors colors)
-
-
Method Detail
-
renderModelFlat
public boolean renderModelFlat(IBlockDisplayReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, IVertexBuilder buffer, boolean checkSides, java.util.Random rand, long seed, int combinedOverlayIn, IModelData modelData)
- Overrides:
renderModelFlat
in classBlockModelRenderer
-
renderModelSmooth
public boolean renderModelSmooth(IBlockDisplayReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, IVertexBuilder buffer, boolean checkSides, java.util.Random rand, long seed, int combinedOverlayIn, IModelData modelData)
- Overrides:
renderModelSmooth
in classBlockModelRenderer
-
render
public static boolean render(VertexLighterFlat lighter, IBlockDisplayReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, boolean checkSides, java.util.Random rand, long seed, IModelData modelData)
-
-