Class PlayerKeyringSlot

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

public class PlayerKeyringSlot extends PlayerSlot
Keyring slots of players which contain items.
Author:
hendrik
  • Constructor Details

    • PlayerKeyringSlot

      public PlayerKeyringSlot(String player)
      Creates a new PlayerSlot.
      Parameters:
      player - player
  • Method Details

    • 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 PlayerSlot
      Parameters:
      entity - Entity which may be able to reach this slot
      Returns:
      true, if it is reachable, false otherwise
    • isReachableForThrowingThingsIntoBy

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

      public boolean isFull()
      Description copied from class: RPSlot
      Returns true if the slot is full.
      Overrides:
      isFull in class RPSlot
      Returns:
      true if the slot is full.