public class BlockModelRenderer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
BlockModelRenderer.AmbientOcclusionFace |
(package private) static class |
BlockModelRenderer.Cache |
static class |
BlockModelRenderer.NeighborInfo |
static class |
BlockModelRenderer.Orientation |
(package private) static class |
BlockModelRenderer.VertexTranslations |
Modifier and Type | Field and Description |
---|---|
private BlockColors |
blockColors |
private static java.lang.ThreadLocal<BlockModelRenderer.Cache> |
CACHE_COMBINED_LIGHT |
Constructor and Description |
---|
BlockModelRenderer(BlockColors blockColorsIn) |
Modifier and Type | Method and Description |
---|---|
static void |
disableCache() |
static void |
enableCache() |
private void |
fillQuadBounds(ILightReader blockReaderIn,
BlockState stateIn,
BlockPos posIn,
int[] vertexData,
Direction face,
float[] quadBounds,
java.util.BitSet boundsFlags) |
boolean |
renderModel(ILightReader worldIn,
IBakedModel modelIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixIn,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random randomIn,
long rand,
int combinedOverlayIn)
Deprecated.
|
boolean |
renderModel(ILightReader worldIn,
IBakedModel modelIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixIn,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random randomIn,
long rand,
int combinedOverlayIn,
IModelData modelData) |
void |
renderModel(MatrixStack.Entry matrixEntry,
IVertexBuilder buffer,
BlockState state,
IBakedModel modelIn,
float red,
float green,
float blue,
int combinedLightIn,
int combinedOverlayIn,
IModelData modelData) |
void |
renderModelBrightnessColor(MatrixStack.Entry matrixEntry,
IVertexBuilder buffer,
BlockState state,
IBakedModel modelIn,
float red,
float green,
float blue,
int combinedLightIn,
int combinedOverlayIn)
Deprecated.
|
private static void |
renderModelBrightnessColorQuads(MatrixStack.Entry matrixEntry,
IVertexBuilder buffer,
float red,
float green,
float blue,
java.util.List<BakedQuad> listQuads,
int combinedLightIn,
int combinedOverlayIn) |
boolean |
renderModelFlat(ILightReader worldIn,
IBakedModel modelIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixStackIn,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random randomIn,
long rand,
int combinedOverlayIn)
Deprecated.
|
boolean |
renderModelFlat(ILightReader worldIn,
IBakedModel modelIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixStackIn,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random randomIn,
long rand,
int combinedOverlayIn,
IModelData modelData) |
boolean |
renderModelSmooth(ILightReader worldIn,
IBakedModel modelIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixStackIn,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random randomIn,
long rand,
int combinedOverlayIn)
Deprecated.
|
boolean |
renderModelSmooth(ILightReader worldIn,
IBakedModel modelIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixStackIn,
IVertexBuilder buffer,
boolean checkSides,
java.util.Random randomIn,
long rand,
int combinedOverlayIn,
IModelData modelData) |
private void |
renderQuadsFlat(ILightReader blockAccessIn,
BlockState stateIn,
BlockPos posIn,
int brightnessIn,
int combinedOverlayIn,
boolean ownBrightness,
MatrixStack matrixStackIn,
IVertexBuilder buffer,
java.util.List<BakedQuad> list,
java.util.BitSet bitSet) |
private void |
renderQuadSmooth(ILightReader blockAccessIn,
BlockState stateIn,
BlockPos posIn,
IVertexBuilder buffer,
MatrixStack.Entry matrixEntry,
BakedQuad quadIn,
float colorMul0,
float colorMul1,
float colorMul2,
float colorMul3,
int brightness0,
int brightness1,
int brightness2,
int brightness3,
int combinedOverlayIn) |
private void |
renderQuadsSmooth(ILightReader blockAccessIn,
BlockState stateIn,
BlockPos posIn,
MatrixStack matrixStackIn,
IVertexBuilder buffer,
java.util.List<BakedQuad> list,
float[] quadBounds,
java.util.BitSet bitSet,
BlockModelRenderer.AmbientOcclusionFace aoFace,
int combinedOverlayIn) |
private final BlockColors blockColors
private static final java.lang.ThreadLocal<BlockModelRenderer.Cache> CACHE_COMBINED_LIGHT
public BlockModelRenderer(BlockColors blockColorsIn)
@Deprecated public boolean renderModel(ILightReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn)
public boolean renderModel(ILightReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
@Deprecated public boolean renderModelSmooth(ILightReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn)
public boolean renderModelSmooth(ILightReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
@Deprecated public boolean renderModelFlat(ILightReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn)
public boolean renderModelFlat(ILightReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
private void renderQuadsSmooth(ILightReader blockAccessIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, java.util.List<BakedQuad> list, float[] quadBounds, java.util.BitSet bitSet, BlockModelRenderer.AmbientOcclusionFace aoFace, int combinedOverlayIn)
private void renderQuadSmooth(ILightReader blockAccessIn, BlockState stateIn, BlockPos posIn, IVertexBuilder buffer, MatrixStack.Entry matrixEntry, BakedQuad quadIn, float colorMul0, float colorMul1, float colorMul2, float colorMul3, int brightness0, int brightness1, int brightness2, int brightness3, int combinedOverlayIn)
private void fillQuadBounds(ILightReader blockReaderIn, BlockState stateIn, BlockPos posIn, int[] vertexData, Direction face, @Nullable float[] quadBounds, java.util.BitSet boundsFlags)
private void renderQuadsFlat(ILightReader blockAccessIn, BlockState stateIn, BlockPos posIn, int brightnessIn, int combinedOverlayIn, boolean ownBrightness, MatrixStack matrixStackIn, IVertexBuilder buffer, java.util.List<BakedQuad> list, java.util.BitSet bitSet)
@Deprecated public void renderModelBrightnessColor(MatrixStack.Entry matrixEntry, IVertexBuilder buffer, @Nullable BlockState state, IBakedModel modelIn, float red, float green, float blue, int combinedLightIn, int combinedOverlayIn)
public void renderModel(MatrixStack.Entry matrixEntry, IVertexBuilder buffer, @Nullable BlockState state, IBakedModel modelIn, float red, float green, float blue, int combinedLightIn, int combinedOverlayIn, IModelData modelData)
private static void renderModelBrightnessColorQuads(MatrixStack.Entry matrixEntry, IVertexBuilder buffer, float red, float green, float blue, java.util.List<BakedQuad> listQuads, int combinedLightIn, int combinedOverlayIn)
public static void enableCache()
public static void disableCache()