Interface CompositeBlockStateModel

All Superinterfaces:
net.minecraft.client.renderer.block.dispatch.BlockStateModel, FabricBlockStateModel

@NonExtendable public interface CompositeBlockStateModel extends net.minecraft.client.renderer.block.dispatch.BlockStateModel
A custom block state model that is made of one or more other block state models. Analogous to CompositeModel. Uses the first submodel to determine the particle sprite.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An unbaked composite model made of one or more other unbaked models.

    Nested classes/interfaces inherited from interface net.minecraft.client.renderer.block.dispatch.BlockStateModel

    net.minecraft.client.renderer.block.dispatch.BlockStateModel.SimpleCachedUnbakedRoot, net.minecraft.client.renderer.block.dispatch.BlockStateModel.UnbakedRoot
  • Method Summary

    Modifier and Type
    Method
    Description
    @Unmodifiable List<net.minecraft.client.renderer.block.dispatch.BlockStateModel>
    Gets the models that make up this composite model.
    of(List<net.minecraft.client.renderer.block.dispatch.BlockStateModel> models)
    Creates a new composite model from the given non-empty list of submodels.

    Methods inherited from interface net.minecraft.client.renderer.block.dispatch.BlockStateModel

    collectParts, hasMaterialFlag, materialFlags, particleMaterial
  • Method Details

    • of

      static CompositeBlockStateModel of(List<net.minecraft.client.renderer.block.dispatch.BlockStateModel> models)
      Creates a new composite model from the given non-empty list of submodels.
    • models

      @Unmodifiable List<net.minecraft.client.renderer.block.dispatch.BlockStateModel> models()
      Gets the models that make up this composite model. The returned list will contain at least one model.