public class ForgeBlockModelRenderer extends BlockModelRenderer
BlockModelRenderer.NeighborInfo, BlockModelRenderer.Orientation
Modifier and Type | Field and 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 and Description |
---|
ForgeBlockModelRenderer(BlockColors colors) |
Modifier and Type | Method and Description |
---|---|
static boolean |
render(VertexLighterFlat lighter,
ILightReader world,
IBakedModel model,
BlockState state,
BlockPos pos,
MatrixStack matrixStack,
boolean checkSides,
java.util.Random rand,
long seed,
IModelData modelData) |
boolean |
renderModelFlat(ILightReader 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(ILightReader world,
IBakedModel model,
BlockState state,
BlockPos pos,
MatrixStack matrixStack,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random rand,
long seed,
int combinedOverlayIn,
IModelData modelData) |
disableCache, enableCache, renderModel, renderModel, renderModel, renderModelBrightnessColor, renderModelFlat, renderModelSmooth
private final java.lang.ThreadLocal<VertexLighterFlat> lighterFlat
private final java.lang.ThreadLocal<VertexLighterSmoothAo> lighterSmooth
private final java.lang.ThreadLocal<VertexBufferConsumer> consumerFlat
private final java.lang.ThreadLocal<VertexBufferConsumer> consumerSmooth
public ForgeBlockModelRenderer(BlockColors colors)
public boolean renderModelFlat(ILightReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, IVertexBuilder buffer, boolean checkSides, java.util.Random rand, long seed, int combinedOverlayIn, IModelData modelData)
renderModelFlat
in class BlockModelRenderer
public boolean renderModelSmooth(ILightReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, IVertexBuilder buffer, boolean checkSides, java.util.Random rand, long seed, int combinedOverlayIn, IModelData modelData)
renderModelSmooth
in class BlockModelRenderer
public static boolean render(VertexLighterFlat lighter, ILightReader world, IBakedModel model, BlockState state, BlockPos pos, MatrixStack matrixStack, boolean checkSides, java.util.Random rand, long seed, IModelData modelData)