Class EntityRenderersEvent.AddLayers

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

public static class EntityRenderersEvent.AddLayers extends EntityRenderersEvent
Provides a safe place to register entity renderer layers.
  • Field Details

  • Constructor Details

  • Method Details

    • getSkins

      public Set<String> getSkins()
      Returns the list of skins.
    • getSkin

      @Nullable public <R extends LivingEntityRenderer<? extends Player, ? extends EntityModel<? extends Player>>> R getSkin(String skinName)
      Returns a player skin renderer. Vanilla skins are "default" and "slim".
      Type Parameters:
      R - The type of the skin renderer, usually PlayerRenderer
      Parameters:
      skinName - The name of the skin renderer to return
      Returns:
      The skin renderer, or null if not found
    • getRenderer

      @Nullable public <T extends LivingEntity, R extends LivingEntityRenderer<T, ? extends EntityModel<T>>> R getRenderer(EntityType<? extends T> entityType)
      Returns an entity renderer for the given entity type.
      Type Parameters:
      T - The type of entity the renderer is for
      R - The renderer type
      Parameters:
      entityType - The entity to return a renderer for
      Returns:
      The renderer
    • getEntityModels

      public EntityModelSet getEntityModels()