Class MicroblockPartRenderer

java.lang.Object
codechicken.microblock.client.MicroblockPartRenderer
All Implemented Interfaces:
PartRenderer<MicroblockPart,Void>

public class MicroblockPartRenderer extends Object implements PartRenderer<MicroblockPart,Void>
Created by covers1624 on 20/10/22.
  • Field Details

  • Constructor Details

    • MicroblockPartRenderer

      public MicroblockPartRenderer()
  • Method Details

    • collectParts

      public void collectParts(net.neoforged.neoforge.model.data.ModelData modelData, net.minecraft.world.level.BlockAndTintGetter level, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource rand, List<net.minecraft.client.renderer.block.model.BlockModelPart> parts)
      Description copied from interface: PartRenderer
      Get the static quads for this part, this is synonymous to BlockStateModelExtension.collectParts(BlockAndTintGetter, BlockPos, BlockState, RandomSource, List)

      This is method may be called on the chunk batching thread. World/state access should be performed in a thread-safe manner.

      It is highly recommended that parts do some form of caching for the data returned here.

      Specified by:
      collectParts in interface PartRenderer<MicroblockPart,Void>
      Parameters:
      modelData - The model data you returned from MultiPart.getModelData().
      level - The level.
      pos - The block position.
      rand - The RandomSource for this block position.
      parts - The output collector.