java.lang.Object
io.github.sefiraat.networks.network.stackcaches.ItemStackCache
io.github.sefiraat.networks.network.stackcaches.QuantumCache

public class QuantumCache extends ItemStackCache
  • Constructor Details

    • QuantumCache

      public QuantumCache(@Nullable ItemStack storedItem, int amount, int limit, boolean voidExcess)
  • Method Details

    • getStoredItemMeta

      @Nullable public ItemMeta getStoredItemMeta()
    • getAmount

      public int getAmount()
    • setAmount

      public void setAmount(int amount)
    • increaseAmount

      public int increaseAmount(int amount)
    • reduceAmount

      public void reduceAmount(int amount)
    • getLimit

      public int getLimit()
    • isVoidExcess

      public boolean isVoidExcess()
    • setVoidExcess

      public void setVoidExcess(boolean voidExcess)
    • withdrawItem

      @Nullable public ItemStack withdrawItem(int amount)
    • withdrawItem

      @Nullable public ItemStack withdrawItem()
    • addMetaLore

      public void addMetaLore(ItemMeta itemMeta)
    • updateMetaLore

      public void updateMetaLore(ItemMeta itemMeta)