Class BaseSkin

java.lang.Object
me.deecaad.weaponmechanics.weapon.skin.BaseSkin
All Implemented Interfaces:
me.deecaad.core.file.Serializer<BaseSkin>, Skin

public class BaseSkin extends Object implements Skin, me.deecaad.core.file.Serializer<BaseSkin>
  • Constructor Details

    • BaseSkin

      public BaseSkin()
      Default constructor for Serializer
    • BaseSkin

      public BaseSkin(int customModelData)
    • BaseSkin

      public BaseSkin(@NotNull Optional<org.bukkit.inventory.ItemType> type, @NotNull Optional<org.bukkit.NamespacedKey> itemModel, @NotNull OptionalInt customModelData)
  • Method Details

    • hasType

      public boolean hasType()
    • getType

      @Nullable public org.bukkit.inventory.ItemType getType()
    • hasCustomModelData

      public boolean hasCustomModelData()
    • getCustomModelData

      public int getCustomModelData()
    • apply

      public void apply(@NotNull org.bukkit.inventory.ItemStack weapon)
      Applies this skin to given item stack
      Specified by:
      apply in interface Skin
      Parameters:
      weapon - the item stack for which to apply skin
    • serialize

      @NotNull public BaseSkin serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException
      Specified by:
      serialize in interface me.deecaad.core.file.Serializer<BaseSkin>
      Throws:
      me.deecaad.core.file.SerializerException