Class AAvailableSlot<H extends Hook, T extends PieceOfGear>

java.lang.Object
de.rpgframework.genericrpg.modification.ModifyableImpl
de.rpgframework.genericrpg.items.AAvailableSlot<H,T>
All Implemented Interfaces:
Modifyable

public abstract class AAvailableSlot<H extends Hook, T extends PieceOfGear> extends ModifyableImpl
  • Field Details

  • Constructor Details

    • AAvailableSlot

      protected AAvailableSlot()
    • AAvailableSlot

      public AAvailableSlot(float capacity)
  • Method Details

    • getAllEmbeddedItems

      public List<CarriedItem<T>> getAllEmbeddedItems()
    • toString

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

      public void addEmbeddedItem(CarriedItem accessory)
      Parameters:
      accessory - the accessory to set
    • removeEmbeddedItem

      public boolean removeEmbeddedItem(CarriedItem accessory)
    • getHook

      public abstract H getHook()
      Where is the slot attached
      Returns:
      the slot
    • getCapacity

      public float getCapacity()
    • setCapacity

      public void setCapacity(float value)
    • getUsedCapacity

      public abstract float getUsedCapacity()
    • getFreeCapacity

      public abstract float getFreeCapacity()
    • clear

      public void clear()