Package net.risingworld.api.objects
Class Item.ObjectItem
java.lang.Object
net.risingworld.api.objects.Item
net.risingworld.api.objects.Item.ObjectItem
- Enclosing class:
Item
Represents an object item in the inventory of a player or in a storage box.
This is, for example, a furniture item. Most objects are represented by a generic "objectkit" item, so they have the same item type ID, but only a different object ID (see
This is, for example, a furniture item. Most objects are represented by a generic "objectkit" item, so they have the same item type ID, but only a different object ID (see
getObjectID()
)-
Nested Class Summary
Nested classes/interfaces inherited from class net.risingworld.api.objects.Item
Item.BlueprintItem, Item.ClothingItem, Item.ConstructionItem, Item.ObjectItem
-
Method Summary
Modifier and TypeMethodDescriptionGets the definition of the object that is represented by this item.short
Gets the type ID of the object that is represented by this item.Gets the name of the object that is represented by this item.Methods inherited from class net.risingworld.api.objects.Item
destroy, equals, getDefinition, getDurability, getMaxStackSize, getModifier, getName, getStack, getStatus, getTypeID, getValue, getVariant, hashCode, isValid, setDurability, setModifier, setStack, setStatus, setValue
-
Method Details
-
getObjectID
public short getObjectID()Gets the type ID of the object that is represented by this item.- Returns:
- the object type ID.
-
getObjectName
Gets the name of the object that is represented by this item.- Returns:
- the internal object name.
-
getObjectDefinition
Gets the definition of the object that is represented by this item.- Returns:
- the object definition.
-