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 boolean
loadFromItem
(org.bukkit.inventory.ItemStack item) Load the modifier from an itemboolean
loadFromItemMeta
(org.bukkit.inventory.meta.ItemMeta meta) Load the modifier from the item metadefault @NotNull org.bukkit.inventory.ItemStack
modify
(@NotNull org.bukkit.inventory.ItemStack original, @Nullable UUID uuid, @NotNull StringReplacer stringReplacer) Modify the item@NotNull org.bukkit.inventory.meta.ItemMeta
modifyMeta
(@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:ItemModifier
Modify the item- Specified by:
modify
in 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:ItemModifier
Load the modifier from an item- Specified by:
loadFromItem
in interfaceItemModifier<org.bukkit.inventory.ItemStack>
- Parameters:
item
- the item- Returns:
- true if it can
-