java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.Skin
All Implemented Interfaces:
ActionData

public abstract class Skin extends Object implements ActionData
Data for when a skin should be applied.
See Also:
  • Constructor Details

    • Skin

      public Skin()
  • Method Details

    • getType

      public ActionDataType<Skin> getType()
      Description copied from interface: ActionData
      Returns the type of this action data.
      Specified by:
      getType in interface ActionData
      Returns:
      The type represented by this data
    • getId

      public abstract String getId()
      Returns the unique id of this skin as configured.
      Returns:
      The id
    • getBroadType

      public abstract Skin.BroadType getBroadType()
      Returns the broad type that this skin resembles.
      Returns:
      The broad type
    • getEntityType

      @Nullable public abstract @Nullable EntityType getEntityType()
      Returns the entity type that this skin is made for.

      Only present if getBroadType() is Skin.BroadType.LIVING.

      Returns:
      The entity type, or null if it's not known
    • getSkinTexture

      @Nullable public abstract @Nullable String getSkinTexture()
      Get the skin's texture value.

      Only needed if getBroadType() is Skin.BroadType.PLAYER.

      Returns:
      The skin texture, or null if it's not known
    • getSkinSignature

      @Nullable public abstract @Nullable String getSkinSignature()
      Get the skin's signature value.

      Only needed if getBroadType() is Skin.BroadType.PLAYER.

      Returns:
      The skin signature, or null if it's not known