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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceStaticPartRenderer.Factory<P extends MultiPart> -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectParts(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 toBlockStateModelExtension.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 toBlockStateModelExtension.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 fromMultiPart.getModelData().level- The level.pos- The block position.rand- TheRandomSourcefor this block position.parts- The output collector.
-