Interface IDynamicModelElement


public interface IDynamicModelElement
Interface for blocks and items which can have a dynamic model.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.resources.model.BakedModel
    createDynamicModel(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event)
    Should return not null if hasDynamicModel() is true.
    boolean
     
  • Method Details

    • hasDynamicModel

      boolean hasDynamicModel()
      Returns:
      If this block has a dynamic model.
    • createDynamicModel

      net.minecraft.client.resources.model.BakedModel createDynamicModel(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event)
      Should return not null if hasDynamicModel() is true. This will only be called once.
      Parameters:
      event - The model bake event.
      Returns:
      A dynamic model instance.