Class KeyedSlot
java.lang.Object
marauroa.common.game.RPSlot
games.stendhal.server.entity.slot.EntitySlot
games.stendhal.server.entity.slot.KeyedSlot
- All Implemented Interfaces:
Slot,Cloneable,Iterable<RPObject>,Serializable
Abused slots of players which contain one RPObject used as hashmap.
- Author:
- hendrik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan this slot contain items?booleanIs this slot reachable to take things out of?Methods inherited from class games.stendhal.server.entity.slot.EntitySlot
clearErrorMessage, getContentSlotName, getErrorMessage, getSlotType, isReachableForThrowingThingsIntoBy, isTargetBoundCheckRequired, setErrorMessageMethods inherited from class marauroa.common.game.RPSlot
add, add, addPreservingId, clear, clearVisible, clone, equals, get, getCapacity, getFirst, getName, getOwner, has, hasAsAncestor, hasAsAncestor, hashCode, isEmpty, isFull, iterator, readObject, remove, resetAddedAndDeletedRPObjects, setAddedRPObject, setCapacity, setDeletedRPObject, setName, size, toString, writeObject, writeObject, writeToJsonMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
KeyedSlot
Creates a new keyed slot.- Parameters:
name- name of slot
-
-
Method Details
-
isItemSlot
public boolean isItemSlot()Description copied from interface:SlotCan this slot contain items?- Specified by:
isItemSlotin interfaceSlot- Overrides:
isItemSlotin classEntitySlot- Returns:
- true, if it can contains items, false otherwise
-
isReachableForTakingThingsOutOfBy
Description copied from interface:SlotIs this slot reachable to take things out of?- Specified by:
isReachableForTakingThingsOutOfByin interfaceSlot- Overrides:
isReachableForTakingThingsOutOfByin classEntitySlot- Parameters:
entity- Entity which may be able to reach this slot- Returns:
- true, if it is reachable, false otherwise
-