类 EntityRenderersEvent.CreateSkullModels

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.EntityRenderersEvent
net.minecraftforge.client.event.EntityRenderersEvent.CreateSkullModels
所有已实现的接口:
net.minecraftforge.fml.event.IModBusEvent
封闭类:
EntityRenderersEvent

public static class EntityRenderersEvent.CreateSkullModels extends EntityRenderersEvent
Fired for registering additional skull models at the appropriate time.

This event is not cancellable, and does not have a result.

This event is fired on the mod-specific event bus, only on the logical client.

  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getEntityModelSet

      public EntityModelSet getEntityModelSet()
      返回 the set of entity models。
      返回:
      the set of entity models
    • 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 appropriate time.
      参数:
      type - a unique skull type; an exception will be thrown later if multiple mods (including vanilla) register models for the same type
      model - the skull model instance. A typical implementation will simply bake a model using EntityModelSet.bakeLayer(ModelLayerLocation) and pass it to the constructor for SkullModel.