Class SocketAttribute

All Implemented Interfaces:
Emptible<String[]>, Tiered

public class SocketAttribute extends DuplicableItemLoreStat<String[]> implements Tiered, Emptible<String[]>
  • Constructor Details

  • Method Details

    • getParameterClass

      @NotNull public Class<String[]> getParameterClass()
      Specified by:
      getParameterClass in class ItemLoreStat<String[]>
    • getModule

      @NotNull public ModuleSocket<?> getModule()
    • getType

      @NotNull public SocketAttribute.Type getType()
    • getTier

      @NotNull public Tier getTier()
      Specified by:
      getTier in interface Tiered
    • getFirstEmptyIndex

      public final int getFirstEmptyIndex(@NotNull org.bukkit.inventory.ItemStack item)
    • getEmptyAmount

      public final int getEmptyAmount(@NotNull org.bukkit.inventory.ItemStack item)
    • getFilledAmount

      public final int getFilledAmount(@NotNull org.bukkit.inventory.ItemStack item)
    • formatValue

      @NotNull public String formatValue(@NotNull org.bukkit.inventory.ItemStack item, @NotNull String[] value)
      Specified by:
      formatValue in class ItemLoreStat<String[]>
    • isEmpty

      public boolean isEmpty(@NotNull String[] value)
      Specified by:
      isEmpty in interface Emptible<String[]>
    • getDefaultValue

      @NotNull public String[] getDefaultValue()
      Specified by:
      getDefaultValue in interface Emptible<String[]>