Class PlayerKeyringSlot
java.lang.Object
marauroa.common.game.RPSlot
games.stendhal.server.entity.slot.EntitySlot
games.stendhal.server.entity.slot.PlayerSlot
games.stendhal.server.entity.slot.PlayerKeyringSlot
- All Implemented Interfaces:
Slot
,Cloneable
,Iterable<RPObject>
,Serializable
Keyring slots of players which contain items.
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isFull()
Returns true if the slot is full.boolean
isReachableForTakingThingsOutOfBy(Entity entity)
Is this slot reachable to take things out of?boolean
isReachableForThrowingThingsIntoBy(Entity entity)
Is this slot reachable to put things into?Methods inherited from class games.stendhal.server.entity.slot.EntitySlot
clearErrorMessage, getContentSlotName, getErrorMessage, getSlotType, isItemSlot, isTargetBoundCheckRequired, setErrorMessage
Methods inherited from class marauroa.common.game.RPSlot
add, add, addPreservingId, clear, clearVisible, clone, equals, get, getCapacity, getFirst, getName, getOwner, has, hasAsAncestor, hasAsAncestor, hashCode, isEmpty, iterator, readObject, remove, resetAddedAndDeletedRPObjects, setAddedRPObject, setCapacity, setDeletedRPObject, setName, size, toString, writeObject, writeObject, writeToJson
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PlayerKeyringSlot
Creates a new PlayerSlot.- Parameters:
player
- player
-
-
Method Details
-
isReachableForTakingThingsOutOfBy
Description copied from interface:Slot
Is this slot reachable to take things out of?- Specified by:
isReachableForTakingThingsOutOfBy
in interfaceSlot
- Overrides:
isReachableForTakingThingsOutOfBy
in classPlayerSlot
- Parameters:
entity
- Entity which may be able to reach this slot- Returns:
- true, if it is reachable, false otherwise
-
isReachableForThrowingThingsIntoBy
Description copied from interface:Slot
Is this slot reachable to put things into?- Specified by:
isReachableForThrowingThingsIntoBy
in interfaceSlot
- Overrides:
isReachableForThrowingThingsIntoBy
in classEntitySlot
- 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.
-