Class MicroblockPartRenderer

java.lang.Object
codechicken.microblock.client.MicroblockPartRenderer
All Implemented Interfaces:
StaticPartRenderer<MicroblockPart>

public class MicroblockPartRenderer extends Object implements StaticPartRenderer<MicroblockPart>
Created by covers1624 on 20/10/22.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface codechicken.multipart.api.part.render.StaticPartRenderer

    StaticPartRenderer.Factory<P extends MultiPart>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Get the static quads for this part, this is synonymous to BlockStateModelExtension.collectParts(BlockAndTintGetter, BlockPos, BlockState, RandomSource, List)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: StaticPartRenderer
      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 StaticPartRenderer<MicroblockPart>
      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.