Interface AltModelBlockRenderer


public interface AltModelBlockRenderer
An alternative to ModelBlockRenderer that tessellates block models into a QuadEmitter instead of a BlockQuadOutput.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 to ModelBlockRenderer.tesselateBlock(BlockQuadOutput, float, float, float, BlockAndTintGetter, BlockPos, BlockState, BlockStateModel, long) that tessellates a BlockStateModel into a QuadEmitter instead of a BlockQuadOutput.
  • 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 to ModelBlockRenderer.tesselateBlock(BlockQuadOutput, float, float, float, BlockAndTintGetter, BlockPos, BlockState, BlockStateModel, long) that tessellates a BlockStateModel into a QuadEmitter instead of a BlockQuadOutput.
      Parameters:
      output - the quad output
      x - the x position offset
      y - the y position offset
      z - the z position offset
      level - the level to tessellate in
      pos - the model's in-level position
      blockState - the model's block state
      model - the model
      seed - the model's random seed