Class ContainerItemSlot
java.lang.Object
marauroa.common.game.RPSlot
games.stendhal.server.entity.slot.EntitySlot
games.stendhal.server.entity.slot.ContainerItemSlot
- All Implemented Interfaces:
Slot,Cloneable,Iterable<RPObject>,Serializable
slot used in container items such as a wallet
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionContainerItemSlot(String name, String contentSlotName) creates a new ContainerItemSlot -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs this slot reachable to take things out of?toString()just return the slot nameMethods inherited from class games.stendhal.server.entity.slot.EntitySlot
clearErrorMessage, getContentSlotName, getErrorMessage, getSlotType, isItemSlot, 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, 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
-
ContainerItemSlot
creates a new ContainerItemSlot- Parameters:
name- name of slotcontentSlotName- name of slot used by the "item may be put in" check
-
-
Method Details
-
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
-
toString
just return the slot name
-