Interface AltModelBlockRenderer
public interface AltModelBlockRenderer
An alternative to
ModelBlockRenderer that tessellates block models into a
QuadEmitter instead of a BlockQuadOutput.-
Method Summary
Modifier and TypeMethodDescriptionvoidtesselateBlock(QuadEmitter output, float x, float y, float z, net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.client.renderer.block.dispatch.BlockStateModel model, long seed) An alternative toModelBlockRenderer.tesselateBlock(BlockQuadOutput, float, float, float, BlockAndTintGetter, BlockPos, BlockState, BlockStateModel, long)that tessellates aBlockStateModelinto aQuadEmitterinstead of aBlockQuadOutput.
-
Method Details
-
tesselateBlock
void tesselateBlock(QuadEmitter output, float x, float y, float z, net.minecraft.client.renderer.block.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState blockState, net.minecraft.client.renderer.block.dispatch.BlockStateModel model, long seed) An alternative toModelBlockRenderer.tesselateBlock(BlockQuadOutput, float, float, float, BlockAndTintGetter, BlockPos, BlockState, BlockStateModel, long)that tessellates aBlockStateModelinto aQuadEmitterinstead of aBlockQuadOutput.- Parameters:
output- the quad outputx- the x position offsety- the y position offsetz- the z position offsetlevel- the level to tessellate inpos- the model's in-level positionblockState- the model's block statemodel- the modelseed- the model's random seed
-