Package net.minecraft.client.renderer
Class BlockModelRenderer
- java.lang.Object
-
- net.minecraft.client.renderer.BlockModelRenderer
-
- Direct Known Subclasses:
ForgeBlockModelRenderer
public class BlockModelRenderer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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
-
Field Summary
Fields Modifier and Type Field Description private BlockColors
blockColors
private static java.lang.ThreadLocal<BlockModelRenderer.Cache>
CACHE
-
Constructor Summary
Constructors Constructor Description BlockModelRenderer(BlockColors p_i46575_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private void
calculateShape(IBlockDisplayReader p_228801_1_, BlockState p_228801_2_, BlockPos p_228801_3_, int[] p_228801_4_, Direction p_228801_5_, float[] p_228801_6_, java.util.BitSet p_228801_7_)
static void
clearCache()
static void
enableCaching()
private void
putQuadData(IBlockDisplayReader p_228800_1_, BlockState p_228800_2_, BlockPos p_228800_3_, IVertexBuilder p_228800_4_, MatrixStack.Entry p_228800_5_, BakedQuad p_228800_6_, float p_228800_7_, float p_228800_8_, float p_228800_9_, float p_228800_10_, int p_228800_11_, int p_228800_12_, int p_228800_13_, int p_228800_14_, int p_228800_15_)
void
renderModel(MatrixStack.Entry p_228804_1_, IVertexBuilder p_228804_2_, BlockState p_228804_3_, IBakedModel p_228804_4_, float p_228804_5_, float p_228804_6_, float p_228804_7_, int p_228804_8_, int p_228804_9_)
Deprecated.void
renderModel(MatrixStack.Entry p_228804_1_, IVertexBuilder p_228804_2_, BlockState p_228804_3_, IBakedModel p_228804_4_, float p_228804_5_, float p_228804_6_, float p_228804_7_, int p_228804_8_, int p_228804_9_, IModelData modelData)
boolean
renderModel(IBlockDisplayReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
private void
renderModelFaceAO(IBlockDisplayReader p_228799_1_, BlockState p_228799_2_, BlockPos p_228799_3_, MatrixStack p_228799_4_, IVertexBuilder p_228799_5_, java.util.List<BakedQuad> p_228799_6_, float[] p_228799_7_, java.util.BitSet p_228799_8_, BlockModelRenderer.AmbientOcclusionFace p_228799_9_, int p_228799_10_)
private void
renderModelFaceFlat(IBlockDisplayReader p_228798_1_, BlockState p_228798_2_, BlockPos p_228798_3_, int p_228798_4_, int p_228798_5_, boolean p_228798_6_, MatrixStack p_228798_7_, IVertexBuilder p_228798_8_, java.util.List<BakedQuad> p_228798_9_, java.util.BitSet p_228798_10_)
boolean
renderModelFlat(IBlockDisplayReader 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(IBlockDisplayReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
private static void
renderQuadList(MatrixStack.Entry p_228803_0_, IVertexBuilder p_228803_1_, float p_228803_2_, float p_228803_3_, float p_228803_4_, java.util.List<BakedQuad> p_228803_5_, int p_228803_6_, int p_228803_7_)
boolean
tesselateBlock(IBlockDisplayReader p_228802_1_, IBakedModel p_228802_2_, BlockState p_228802_3_, BlockPos p_228802_4_, MatrixStack p_228802_5_, IVertexBuilder p_228802_6_, boolean p_228802_7_, java.util.Random p_228802_8_, long p_228802_9_, int p_228802_11_)
Deprecated.boolean
tesselateWithAO(IBlockDisplayReader p_228805_1_, IBakedModel p_228805_2_, BlockState p_228805_3_, BlockPos p_228805_4_, MatrixStack p_228805_5_, IVertexBuilder p_228805_6_, boolean p_228805_7_, java.util.Random p_228805_8_, long p_228805_9_, int p_228805_11_)
Deprecated.boolean
tesselateWithoutAO(IBlockDisplayReader p_228806_1_, IBakedModel p_228806_2_, BlockState p_228806_3_, BlockPos p_228806_4_, MatrixStack p_228806_5_, IVertexBuilder p_228806_6_, boolean p_228806_7_, java.util.Random p_228806_8_, long p_228806_9_, int p_228806_11_)
Deprecated.
-
-
-
Field Detail
-
blockColors
private final BlockColors blockColors
-
CACHE
private static final java.lang.ThreadLocal<BlockModelRenderer.Cache> CACHE
-
-
Constructor Detail
-
BlockModelRenderer
public BlockModelRenderer(BlockColors p_i46575_1_)
-
-
Method Detail
-
tesselateBlock
@Deprecated public boolean tesselateBlock(IBlockDisplayReader p_228802_1_, IBakedModel p_228802_2_, BlockState p_228802_3_, BlockPos p_228802_4_, MatrixStack p_228802_5_, IVertexBuilder p_228802_6_, boolean p_228802_7_, java.util.Random p_228802_8_, long p_228802_9_, int p_228802_11_)
Deprecated.
-
renderModel
public boolean renderModel(IBlockDisplayReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
-
tesselateWithAO
@Deprecated public boolean tesselateWithAO(IBlockDisplayReader p_228805_1_, IBakedModel p_228805_2_, BlockState p_228805_3_, BlockPos p_228805_4_, MatrixStack p_228805_5_, IVertexBuilder p_228805_6_, boolean p_228805_7_, java.util.Random p_228805_8_, long p_228805_9_, int p_228805_11_)
Deprecated.
-
renderModelSmooth
public boolean renderModelSmooth(IBlockDisplayReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
-
tesselateWithoutAO
@Deprecated public boolean tesselateWithoutAO(IBlockDisplayReader p_228806_1_, IBakedModel p_228806_2_, BlockState p_228806_3_, BlockPos p_228806_4_, MatrixStack p_228806_5_, IVertexBuilder p_228806_6_, boolean p_228806_7_, java.util.Random p_228806_8_, long p_228806_9_, int p_228806_11_)
Deprecated.
-
renderModelFlat
public boolean renderModelFlat(IBlockDisplayReader worldIn, IBakedModel modelIn, BlockState stateIn, BlockPos posIn, MatrixStack matrixStackIn, IVertexBuilder buffer, boolean checkSides, java.util.Random randomIn, long rand, int combinedOverlayIn, IModelData modelData)
-
renderModelFaceAO
private void renderModelFaceAO(IBlockDisplayReader p_228799_1_, BlockState p_228799_2_, BlockPos p_228799_3_, MatrixStack p_228799_4_, IVertexBuilder p_228799_5_, java.util.List<BakedQuad> p_228799_6_, float[] p_228799_7_, java.util.BitSet p_228799_8_, BlockModelRenderer.AmbientOcclusionFace p_228799_9_, int p_228799_10_)
-
putQuadData
private void putQuadData(IBlockDisplayReader p_228800_1_, BlockState p_228800_2_, BlockPos p_228800_3_, IVertexBuilder p_228800_4_, MatrixStack.Entry p_228800_5_, BakedQuad p_228800_6_, float p_228800_7_, float p_228800_8_, float p_228800_9_, float p_228800_10_, int p_228800_11_, int p_228800_12_, int p_228800_13_, int p_228800_14_, int p_228800_15_)
-
calculateShape
private void calculateShape(IBlockDisplayReader p_228801_1_, BlockState p_228801_2_, BlockPos p_228801_3_, int[] p_228801_4_, Direction p_228801_5_, @Nullable float[] p_228801_6_, java.util.BitSet p_228801_7_)
-
renderModelFaceFlat
private void renderModelFaceFlat(IBlockDisplayReader p_228798_1_, BlockState p_228798_2_, BlockPos p_228798_3_, int p_228798_4_, int p_228798_5_, boolean p_228798_6_, MatrixStack p_228798_7_, IVertexBuilder p_228798_8_, java.util.List<BakedQuad> p_228798_9_, java.util.BitSet p_228798_10_)
-
renderModel
@Deprecated public void renderModel(MatrixStack.Entry p_228804_1_, IVertexBuilder p_228804_2_, @Nullable BlockState p_228804_3_, IBakedModel p_228804_4_, float p_228804_5_, float p_228804_6_, float p_228804_7_, int p_228804_8_, int p_228804_9_)
Deprecated.
-
renderModel
public void renderModel(MatrixStack.Entry p_228804_1_, IVertexBuilder p_228804_2_, @Nullable BlockState p_228804_3_, IBakedModel p_228804_4_, float p_228804_5_, float p_228804_6_, float p_228804_7_, int p_228804_8_, int p_228804_9_, IModelData modelData)
-
renderQuadList
private static void renderQuadList(MatrixStack.Entry p_228803_0_, IVertexBuilder p_228803_1_, float p_228803_2_, float p_228803_3_, float p_228803_4_, java.util.List<BakedQuad> p_228803_5_, int p_228803_6_, int p_228803_7_)
-
enableCaching
public static void enableCaching()
-
clearCache
public static void clearCache()
-
-