|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mud4j.world.item.AbstractItem
public class AbstractItem
Abstract implementation for an item type.
| Constructor Summary | |
|---|---|
AbstractItem()
|
|
| Method Summary | |
|---|---|
EffectBehavior |
getEffectBehavior()
Get effect behavior to handle effects. |
java.lang.String |
getName()
Get the name of the item. |
java.util.List<ItemType> |
getTypes()
Get list of item types for the item. |
void |
setEffectBehavior(EffectBehavior effectBehavior)
Set effect behavior on the effectable object. |
void |
setName(java.lang.String newItemName)
Set the name of the item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractItem()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Itempublic void setName(java.lang.String newItemName)
setName in interface ItemnewItemName - New item name for the item.public java.util.List<ItemType> getTypes()
getTypes in interface Itempublic EffectBehavior getEffectBehavior()
getEffectBehavior in interface Effectablepublic void setEffectBehavior(EffectBehavior effectBehavior)
setEffectBehavior in interface Effectable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||