Class BetterGuiCustomModifier

  • All Implemented Interfaces:
    me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier

    public class BetterGuiCustomModifier
    extends java.lang.Object
    implements me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
    A custom ItemModifier for the BetterGUI library.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canLoadFromItemStack​(org.bukkit.inventory.ItemStack itemStack)  
      boolean compareWithItemStack​(org.bukkit.inventory.ItemStack itemStack, java.util.UUID uuid, java.util.Map<java.lang.String,​me.hsgamer.bettergui.lib.core.common.interfaces.StringReplacer> map)  
      @NotNull java.lang.String getName()  
      void loadFromItemStack​(org.bukkit.inventory.ItemStack itemStack)  
      void loadFromObject​(java.lang.Object o)  
      @Nullable org.bukkit.inventory.ItemStack modify​(org.bukkit.inventory.ItemStack itemStack, java.util.UUID uuid, @NotNull java.util.Map<java.lang.String,​me.hsgamer.bettergui.lib.core.common.interfaces.StringReplacer> map)  
      java.lang.Object toObject()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier

        compareWithItemStack, compareWithItemStack, modify, modify
    • Constructor Detail

      • BetterGuiCustomModifier

        public BetterGuiCustomModifier()
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Specified by:
        getName in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
      • modify

        @Nullable
        public @Nullable org.bukkit.inventory.ItemStack modify​(org.bukkit.inventory.ItemStack itemStack,
                                                               java.util.UUID uuid,
                                                               @NotNull
                                                               @NotNull java.util.Map<java.lang.String,​me.hsgamer.bettergui.lib.core.common.interfaces.StringReplacer> map)
        Specified by:
        modify in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
      • toObject

        public java.lang.Object toObject()
        Specified by:
        toObject in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
      • loadFromObject

        public void loadFromObject​(java.lang.Object o)
        Specified by:
        loadFromObject in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
      • canLoadFromItemStack

        public boolean canLoadFromItemStack​(org.bukkit.inventory.ItemStack itemStack)
        Specified by:
        canLoadFromItemStack in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
      • loadFromItemStack

        public void loadFromItemStack​(org.bukkit.inventory.ItemStack itemStack)
        Specified by:
        loadFromItemStack in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier
      • compareWithItemStack

        public boolean compareWithItemStack​(org.bukkit.inventory.ItemStack itemStack,
                                            java.util.UUID uuid,
                                            java.util.Map<java.lang.String,​me.hsgamer.bettergui.lib.core.common.interfaces.StringReplacer> map)
        Specified by:
        compareWithItemStack in interface me.hsgamer.bettergui.lib.core.bukkit.item.ItemModifier