Class Item.ObjectItem

java.lang.Object
net.risingworld.api.objects.Item
net.risingworld.api.objects.Item.ObjectItem
Enclosing class:
Item

public static class Item.ObjectItem extends 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 getObjectID())
  • 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

      public String getObjectName()
      Gets the name of the object that is represented by this item.
      Returns:
      the internal object name.
    • getObjectDefinition

      public Objects.ObjectDefinition getObjectDefinition()
      Gets the definition of the object that is represented by this item.
      Returns:
      the object definition.