Interface IDynamicModelElement
public interface IDynamicModelElement
Interface for blocks and items which can have a dynamic model.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.resources.model.BakedModel
createDynamicModel
(net.minecraftforge.client.event.ModelEvent.ModifyBakingResult event) Should return not null ifhasDynamicModel()
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 ifhasDynamicModel()
is true. This will only be called once.- Parameters:
event
- The model bake event.- Returns:
- A dynamic model instance.
-