Interface StaticPartRenderer<P extends MultiPart>

All Known Implementing Classes:
BlockStatePartBakedModelRenderer, MicroblockPartRenderer

public interface StaticPartRenderer<P extends MultiPart>
Created by covers1624 on 7/26/26.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • 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)
  • Method Details

    • collectParts

      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)

      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.

      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.