Interface ItemMetaModifier

All Superinterfaces:
ItemModifier<org.bukkit.inventory.ItemStack>
All Known Implementing Classes:
EnchantmentModifier, ItemFlagModifier, LoreModifier, NameModifier, PotionEffectModifier, SkullModifier

public interface ItemMetaModifier extends ItemModifier<org.bukkit.inventory.ItemStack>
The ItemMeta modifier
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    loadFromItem(org.bukkit.inventory.ItemStack item)
    Load the modifier from an item
    boolean
    loadFromItemMeta(org.bukkit.inventory.meta.ItemMeta meta)
    Load the modifier from the item meta
    default @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 meta

    Methods 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 meta
      uuid - the unique id
      stringReplacer - 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 interface ItemModifier<org.bukkit.inventory.ItemStack>
      Parameters:
      original - the original item
      uuid - the unique id
      stringReplacer - 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 interface ItemModifier<org.bukkit.inventory.ItemStack>
      Parameters:
      item - the item
      Returns:
      true if it can