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 Item
Item.BlueprintItem, Item.ClothingItem, Item.ConstructionItem, Item.ObjectItem -
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedObjectName(String language) Gets the localized name of the object that is represented by this item.Gets the definition of the object that is represented by this item.shortGets 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 Item
destroy, equals, getDefinition, getDurability, getLocalizedName, 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.
-
getLocalizedObjectName
Gets the localized name of the object that is represented by this item. Never null.- Parameters:
language- the language (e.g "en", "de" etc). Get the player language viaPlayer.getLanguage()- Returns:
- the localized name of the object.
-
getObjectDefinition
Gets the definition of the object that is represented by this item.- Returns:
- the object definition.
-