Class KeyedSlot

All Implemented Interfaces:
Slot, Cloneable, Iterable<RPObject>, Serializable

public class KeyedSlot extends EntitySlot
Abused slots of players which contain one RPObject used as hashmap.
Author:
hendrik
  • Constructor Details

    • KeyedSlot

      public KeyedSlot(String name)
      Creates a new keyed slot.
      Parameters:
      name - name of slot
  • Method Details

    • isItemSlot

      public boolean isItemSlot()
      Description copied from interface: Slot
      Can this slot contain items?
      Specified by:
      isItemSlot in interface Slot
      Overrides:
      isItemSlot in class EntitySlot
      Returns:
      true, if it can contains items, false otherwise
    • isReachableForTakingThingsOutOfBy

      public boolean isReachableForTakingThingsOutOfBy(Entity entity)
      Description copied from interface: Slot
      Is this slot reachable to take things out of?
      Specified by:
      isReachableForTakingThingsOutOfBy in interface Slot
      Overrides:
      isReachableForTakingThingsOutOfBy in class EntitySlot
      Parameters:
      entity - Entity which may be able to reach this slot
      Returns:
      true, if it is reachable, false otherwise