Class EntityRenderersEvent.CreateSkullModels

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.EntityRenderersEvent
net.minecraftforge.client.event.EntityRenderersEvent.CreateSkullModels
All Implemented Interfaces:
IModBusEvent
Enclosing class:
EntityRenderersEvent

public static class EntityRenderersEvent.CreateSkullModels extends EntityRenderersEvent
Provides a safe place to register models for the skull block
  • Field Details

  • Constructor Details

  • Method Details

    • getEntityModelSet

      public EntityModelSet getEntityModelSet()
    • registerSkullModel

      public void registerSkullModel(SkullBlock.Type type, SkullModelBase model)
      Registers the constructor for a skull block with the given SkullBlock.Type. These will be inserted into the maps used by the item, entity, and block model renderers at the appropiate time.
      Parameters:
      type - Unique skull type. Will cause an exception if multiple mods (including vanilla) register models for the same type
      model - Model instance. A typical implementation will simply do new SkullModel(entityModelSet.bakeLayer(layerLocation))