Interface ItemMetaModifier
- All Superinterfaces:
ItemModifier<org.bukkit.inventory.ItemStack>
- All Known Implementing Classes:
EnchantmentModifier,ItemFlagModifier,LoreModifier,NameModifier,PotionEffectModifier
The
ItemMeta modifier-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanloadFromItem(org.bukkit.inventory.ItemStack item) Load the modifier from an itembooleanloadFromItemMeta(org.bukkit.inventory.meta.ItemMeta meta) Load the modifier from the item metadefault @NotNull org.bukkit.inventory.ItemStackmodify(@NotNull org.bukkit.inventory.ItemStack original, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer) Modify the item@NotNull org.bukkit.inventory.meta.ItemMetamodifyMeta(@NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer) Modify the item metaMethods inherited from interface me.hsgamer.hscore.minecraft.item.ItemModifier
loadFromObject, modify, modify, toObject
-
Method Details
-
modifyMeta
@NotNull @NotNull org.bukkit.inventory.meta.ItemMeta modifyMeta(@NotNull @NotNull org.bukkit.inventory.meta.ItemMeta meta, @Nullable @Nullable UUID uuid, @NotNull @NotNull StringReplacer stringReplacer) Modify the item meta- Parameters:
meta- the item metauuid- the unique idstringReplacer- the string replacer- Returns:
- the modified item meta
-
loadFromItemMeta
boolean loadFromItemMeta(org.bukkit.inventory.meta.ItemMeta meta) Load the modifier from the item meta- Parameters:
meta- the item meta- See Also:
-
modify
@NotNull default @NotNull org.bukkit.inventory.ItemStack modify(@NotNull @NotNull org.bukkit.inventory.ItemStack original, @Nullable @Nullable UUID uuid, @NotNull @NotNull StringReplacer stringReplacer) Description copied from interface:ItemModifierModify the item- Specified by:
modifyin interfaceItemModifier<org.bukkit.inventory.ItemStack>- Parameters:
original- the original itemuuid- the unique idstringReplacer- the string replacer- Returns:
- the modified item
-
loadFromItem
default boolean loadFromItem(org.bukkit.inventory.ItemStack item) Description copied from interface:ItemModifierLoad the modifier from an item- Specified by:
loadFromItemin interfaceItemModifier<org.bukkit.inventory.ItemStack>- Parameters:
item- the item- Returns:
- true if it can
-