Class BaseSkin
java.lang.Object
me.deecaad.weaponmechanics.weapon.skin.BaseSkin
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
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 -
serialize
@NotNull public BaseSkin serialize(@NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException - Specified by:
serializein interfaceme.deecaad.core.file.Serializer<BaseSkin>- Throws:
me.deecaad.core.file.SerializerException
-