@Environment(value=CLIENT) public class BlockRenderManager extends Object implements SynchronousResourceReloadListener
ResourceReloadListener.Synchronizer
Modifier and Type | Field and Description |
---|---|
private BlockColors |
blockColors |
private BlockModelRenderer |
blockModelRenderer |
private FluidRenderer |
fluidRenderer |
private BlockModels |
models |
private Random |
random |
Constructor and Description |
---|
BlockRenderManager(BlockModels blockModels,
BlockColors blockColors) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ResourceManager manager) |
BakedModel |
getModel(BlockState state) |
BlockModelRenderer |
getModelRenderer() |
BlockModels |
getModels() |
boolean |
renderBlock(BlockState state,
BlockPos pos,
BlockRenderView world,
MatrixStack matrix,
VertexConsumer vertexConsumer,
boolean cull,
Random random) |
void |
renderBlockAsEntity(BlockState state,
MatrixStack matrixStack,
VertexConsumerProvider vertexConsumer,
int light,
int overlay) |
void |
renderDamage(BlockState state,
BlockPos pos,
BlockRenderView world,
MatrixStack matrix,
VertexConsumer vertexConsumer) |
boolean |
renderFluid(BlockPos blockPos,
BlockRenderView blockRenderView,
VertexConsumer vertexConsumer,
FluidState fluidState) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reload
getName
private final BlockModels models
private final BlockModelRenderer blockModelRenderer
private final FluidRenderer fluidRenderer
private final Random random
private final BlockColors blockColors
public BlockRenderManager(BlockModels blockModels, BlockColors blockColors)
public BlockModels getModels()
public void renderDamage(BlockState state, BlockPos pos, BlockRenderView world, MatrixStack matrix, VertexConsumer vertexConsumer)
public boolean renderBlock(BlockState state, BlockPos pos, BlockRenderView world, MatrixStack matrix, VertexConsumer vertexConsumer, boolean cull, Random random)
public boolean renderFluid(BlockPos blockPos, BlockRenderView blockRenderView, VertexConsumer vertexConsumer, FluidState fluidState)
public BlockModelRenderer getModelRenderer()
public BakedModel getModel(BlockState state)
public void renderBlockAsEntity(BlockState state, MatrixStack matrixStack, VertexConsumerProvider vertexConsumer, int light, int overlay)
public void apply(ResourceManager manager)
apply
in interface SynchronousResourceReloadListener