Package net.minecraft.client.renderer
Class BlockRendererDispatcher
- java.lang.Object
-
- net.minecraft.client.renderer.BlockRendererDispatcher
-
- All Implemented Interfaces:
IFutureReloadListener
,IResourceManagerReloadListener
public class BlockRendererDispatcher extends java.lang.Object implements IResourceManagerReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description private BlockColors
blockColors
private BlockModelShapes
blockModelShaper
private FluidBlockRenderer
liquidBlockRenderer
private BlockModelRenderer
modelRenderer
private java.util.Random
random
-
Constructor Summary
Constructors Constructor Description BlockRendererDispatcher(BlockModelShapes p_i46577_1_, BlockColors p_i46577_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IBakedModel
getBlockModel(BlockState p_184389_1_)
BlockModelShapes
getBlockModelShaper()
BlockModelRenderer
getModelRenderer()
IResourceType
getResourceType()
void
onResourceManagerReload(IResourceManager p_195410_1_)
boolean
renderBatched(BlockState p_228793_1_, BlockPos p_228793_2_, IBlockDisplayReader p_228793_3_, MatrixStack p_228793_4_, IVertexBuilder p_228793_5_, boolean p_228793_6_, java.util.Random p_228793_7_)
Deprecated.void
renderBlock(BlockState p_228791_1_, MatrixStack p_228791_2_, IRenderTypeBuffer p_228791_3_, int p_228791_4_, int p_228791_5_, IModelData modelData)
void
renderBlockDamage(BlockState blockStateIn, BlockPos posIn, IBlockDisplayReader lightReaderIn, MatrixStack matrixStackIn, IVertexBuilder vertexBuilderIn, IModelData modelData)
void
renderBreakingTexture(BlockState p_228792_1_, BlockPos p_228792_2_, IBlockDisplayReader p_228792_3_, MatrixStack p_228792_4_, IVertexBuilder p_228792_5_)
Deprecated.boolean
renderLiquid(BlockPos p_228794_1_, IBlockDisplayReader p_228794_2_, IVertexBuilder p_228794_3_, FluidState p_228794_4_)
boolean
renderModel(BlockState blockStateIn, BlockPos posIn, IBlockDisplayReader lightReaderIn, MatrixStack matrixStackIn, IVertexBuilder vertexBuilderIn, boolean checkSides, java.util.Random rand, IModelData modelData)
void
renderSingleBlock(BlockState p_228791_1_, MatrixStack p_228791_2_, IRenderTypeBuffer p_228791_3_, int p_228791_4_, int p_228791_5_)
Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Methods inherited from interface net.minecraft.resources.IResourceManagerReloadListener
reload
-
-
-
-
Field Detail
-
blockModelShaper
private final BlockModelShapes blockModelShaper
-
modelRenderer
private final BlockModelRenderer modelRenderer
-
liquidBlockRenderer
private final FluidBlockRenderer liquidBlockRenderer
-
random
private final java.util.Random random
-
blockColors
private final BlockColors blockColors
-
-
Constructor Detail
-
BlockRendererDispatcher
public BlockRendererDispatcher(BlockModelShapes p_i46577_1_, BlockColors p_i46577_2_)
-
-
Method Detail
-
getBlockModelShaper
public BlockModelShapes getBlockModelShaper()
-
renderBreakingTexture
@Deprecated public void renderBreakingTexture(BlockState p_228792_1_, BlockPos p_228792_2_, IBlockDisplayReader p_228792_3_, MatrixStack p_228792_4_, IVertexBuilder p_228792_5_)
Deprecated.
-
renderBlockDamage
public void renderBlockDamage(BlockState blockStateIn, BlockPos posIn, IBlockDisplayReader lightReaderIn, MatrixStack matrixStackIn, IVertexBuilder vertexBuilderIn, IModelData modelData)
-
renderBatched
@Deprecated public boolean renderBatched(BlockState p_228793_1_, BlockPos p_228793_2_, IBlockDisplayReader p_228793_3_, MatrixStack p_228793_4_, IVertexBuilder p_228793_5_, boolean p_228793_6_, java.util.Random p_228793_7_)
Deprecated.
-
renderModel
public boolean renderModel(BlockState blockStateIn, BlockPos posIn, IBlockDisplayReader lightReaderIn, MatrixStack matrixStackIn, IVertexBuilder vertexBuilderIn, boolean checkSides, java.util.Random rand, IModelData modelData)
-
renderLiquid
public boolean renderLiquid(BlockPos p_228794_1_, IBlockDisplayReader p_228794_2_, IVertexBuilder p_228794_3_, FluidState p_228794_4_)
-
getModelRenderer
public BlockModelRenderer getModelRenderer()
-
getBlockModel
public IBakedModel getBlockModel(BlockState p_184389_1_)
-
renderSingleBlock
@Deprecated public void renderSingleBlock(BlockState p_228791_1_, MatrixStack p_228791_2_, IRenderTypeBuffer p_228791_3_, int p_228791_4_, int p_228791_5_)
Deprecated.
-
renderBlock
public void renderBlock(BlockState p_228791_1_, MatrixStack p_228791_2_, IRenderTypeBuffer p_228791_3_, int p_228791_4_, int p_228791_5_, IModelData modelData)
-
onResourceManagerReload
public void onResourceManagerReload(IResourceManager p_195410_1_)
- Specified by:
onResourceManagerReload
in interfaceIResourceManagerReloadListener
-
getResourceType
public IResourceType getResourceType()
- Specified by:
getResourceType
in interfaceIResourceManagerReloadListener
-
-