Class InventoryItem


  • public final class InventoryItem
    extends java.lang.Object
    Immutable inventory-slot snapshot.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getActions()  
      int getId()  
      java.lang.String getName()  
      int getQuantity()  
      int getSlot()  
      boolean hasAction​(java.lang.String action)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public int getId()
      • getQuantity

        public int getQuantity()
      • getSlot

        public int getSlot()
      • getName

        public java.lang.String getName()
      • getActions

        public java.util.List<java.lang.String> getActions()
      • hasAction

        public boolean hasAction​(java.lang.String action)