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

public class CardInstance extends ItemStackCache
  • Constructor Details

    • CardInstance

      public CardInstance(@Nullable ItemStack itemStack, int amount, int limit)
  • Method Details

    • getAmount

      public int getAmount()
    • getLimit

      public int getLimit()
    • setAmount

      public void setAmount(int amount)
    • withdrawItem

      @Nullable public ItemStack withdrawItem(int amount)
    • withdrawItem

      @Nullable public ItemStack withdrawItem()
    • increaseAmount

      public void increaseAmount(int amount)
    • reduceAmount

      public void reduceAmount(int amount)
    • updateLore

      public void updateLore(@Nonnull ItemMeta itemMeta)
    • getLoreLine

      public String getLoreLine()