Interface Skin
- All Known Implementing Classes:
BaseSkin,RelativeSkin
public interface Skin
The
Skin interface is to abstract out the apply(ItemStack) method, since there
are 2 different skin systems that can work together.
First you got the BaseSkin. The base skin works by having set values (for example,
Custom_Model_Data: 72). So any item will end up with a CMD of 72.
Next you got the RelativeSkin. The relative skin ADDS a value to the "central" base skin
(The "central" base skin being the one you get from calling
SkinSelector.getDefaultSkin()). For example, using Custom_Model_Data: +10
with the above^^ BaseSkin will result in an item with a CMD of 82.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.bukkit.inventory.ItemStack item) Modifies the given item to be match this skin.
-
Method Details
-
apply
void apply(@NotNull org.bukkit.inventory.ItemStack item) Modifies the given item to be match this skin.- Parameters:
item- The non-null item to modify
-