Klasse Item.ObjectItem

java.lang.Object
net.risingworld.api.objects.Item
net.risingworld.api.objects.Item.ObjectItem
Umschließende Klasse:
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())
  • Methodendetails

    • getObjectID

      public short getObjectID()
      Gets the type ID of the object that is represented by this item.
      Gibt zurück:
      the object type ID.
    • getObjectName

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

      public Objects.ObjectDefinition getObjectDefinition()
      Gets the definition of the object that is represented by this item.
      Gibt zurück:
      the object definition.