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 @NotNull Optional<org.bukkit.Material> type, @NotNull @NotNull OptionalInt data, @NotNull @NotNull OptionalInt durability, @NotNull @NotNull OptionalInt customModelData)
  • Method Details

    • hasType

      public boolean hasType()
    • getType

      public org.bukkit.Material getType()
    • hasData

      public boolean hasData()
    • getData

      public byte getData()
    • hasDurability

      public boolean hasDurability()
    • getDurability

      public short getDurability()
    • hasCustomModelData

      public boolean hasCustomModelData()
    • getCustomModelData

      public int getCustomModelData()
    • apply

      public void apply(@NotNull @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 @NotNull BaseSkin serialize(@NotNull @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