Class BaseSkin
java.lang.Object
me.deecaad.weaponmechanics.weapon.skin.BaseSkin
-
Constructor Summary
ConstructorsConstructorDescriptionBaseSkin()Default constructor for SerializerBaseSkin(int customModelData) BaseSkin(@NotNull Optional<org.bukkit.Material> type, @NotNull OptionalInt data, @NotNull OptionalInt durability, @NotNull OptionalInt customModelData) -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(@NotNull org.bukkit.inventory.ItemStack weapon) Applies this skin to given item stackintbytegetData()shortorg.bukkit.MaterialgetType()booleanbooleanhasData()booleanbooleanhasType()@NotNull BaseSkinserialize(@NotNull me.deecaad.core.file.SerializeData data) 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 @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 -
serialize
@NotNull public @NotNull BaseSkin serialize(@NotNull @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
-