Class RelativeSkin

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

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

    Constructors
    Constructor
    Description
    Default constructor for serializer.
    RelativeSkin(int customModelData)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.bukkit.inventory.ItemStack item)
    Modifies the given item to be match this skin.
    int
     
    serialize(me.deecaad.core.file.SerializeData data)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface me.deecaad.core.file.Serializer

    canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
  • Constructor Details

    • RelativeSkin

      public RelativeSkin()
      Default constructor for serializer.
    • RelativeSkin

      public RelativeSkin(int customModelData)
  • Method Details

    • getCustomModelData

      public int getCustomModelData()
    • apply

      public void apply(@NotNull org.bukkit.inventory.ItemStack item)
      Description copied from interface: Skin
      Modifies the given item to be match this skin.
      Specified by:
      apply in interface Skin
      Parameters:
      item - The non-null item to modify
    • serialize

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