Class GenericItemInfo

java.lang.Object
org.screamingsandals.simpleinventories.inventory.GenericItemInfo
All Implemented Interfaces:
Cloneable, IdentifiableEntry, InventoryChild, InventoryParent, Queueable

public class GenericItemInfo extends Object implements Cloneable, IdentifiableEntry
  • Constructor Details

    • GenericItemInfo

      public GenericItemInfo(@NotNull @NotNull InventorySet format)
  • Method Details

    • setFormat

      @Deprecated public void setFormat(@NotNull @NotNull InventorySet format)
      Deprecated.
    • hasId

      public boolean hasId()
    • hasProperties

      public boolean hasProperties()
    • hasAnimation

      public boolean hasAnimation()
    • hasBook

      @Deprecated public boolean hasBook()
      Deprecated.
    • hasChildInventory

      public boolean hasChildInventory()
      Specified by:
      hasChildInventory in interface InventoryParent
    • isWritten

      public boolean isWritten()
    • isDisabled

      public boolean isDisabled()
    • isVisible

      public boolean isVisible()
    • getPropertiesByName

      public Stream<Property> getPropertiesByName(@NotNull @NotNull String name)
    • getFirstPropertyByName

      public Optional<Property> getFirstPropertyByName(String name)
    • moveAbsolute

      public void moveAbsolute(int position)
    • moveRelative

      public void moveRelative(int relative)
    • repaint

      public void repaint()
    • clone

      public GenericItemInfo clone()
      Overrides:
      clone in class Object
    • getFormat

      @NotNull public @NotNull InventorySet getFormat()
      Specified by:
      getFormat in interface IdentifiableEntry
    • getParent

      public SubInventory getParent()
      Specified by:
      getParent in interface InventoryChild
    • getPosition

      public int getPosition()
    • getItem

      public org.screamingsandals.lib.item.Item getItem()
    • getAnimation

      public List<org.screamingsandals.lib.item.Item> getAnimation()
    • getVisible

      public Supplier<Boolean> getVisible()
    • getDisabled

      public Supplier<Boolean> getDisabled()
    • getId

      public String getId()
      Specified by:
      getId in interface IdentifiableEntry
    • getProperties

      public List<Property> getProperties()
    • getBook

      @Deprecated public net.kyori.adventure.inventory.Book getBook()
      Deprecated.
    • getWritten

      public Supplier<Boolean> getWritten()
    • getEventManager

      public org.screamingsandals.lib.event.EventManager getEventManager()
    • getChildInventory

      public SubInventory getChildInventory()
      Specified by:
      getChildInventory in interface InventoryParent
    • getLocate

      public InventoryLink getLocate()
    • getExecutions

      public List<String> getExecutions()
    • getPrices

      public List<Price> getPrices()
    • getRequestedPosition

      public Position getRequestedPosition()
      GENERATION ONLY
    • getRequestedClone

      @Nullable public @Nullable Clone getRequestedClone()
      GENERATION ONLY
    • getRequestedTimes

      @Nullable public @Nullable Times getRequestedTimes()
      GENERATION ONLY
    • getDefaultCurrency

      @Nullable public @Nullable String getDefaultCurrency()
      GENERATION ONLY
    • setParent

      public void setParent(SubInventory parent)
      Specified by:
      setParent in interface InventoryChild
    • setPosition

      public void setPosition(int position)
    • setItem

      public void setItem(org.screamingsandals.lib.item.Item item)
    • setVisible

      public void setVisible(Supplier<Boolean> visible)
    • setDisabled

      public void setDisabled(Supplier<Boolean> disabled)
    • setId

      public void setId(String id)
    • setBook

      @Deprecated public void setBook(net.kyori.adventure.inventory.Book book)
      Deprecated.
    • setWritten

      public void setWritten(Supplier<Boolean> written)
    • setChildInventory

      public void setChildInventory(SubInventory childInventory)
      Specified by:
      setChildInventory in interface InventoryParent
    • setLocate

      public void setLocate(InventoryLink locate)
    • setRequestedPosition

      public void setRequestedPosition(Position requestedPosition)
      GENERATION ONLY
    • setRequestedClone

      public void setRequestedClone(@Nullable @Nullable Clone requestedClone)
      GENERATION ONLY
    • setRequestedTimes

      public void setRequestedTimes(@Nullable @Nullable Times requestedTimes)
      GENERATION ONLY
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setDefaultCurrency

      @Deprecated public void setDefaultCurrency(@Nullable @Nullable String defaultCurrency)
      Deprecated.
      GENERATION ONLY