Class Item.ClothingItem
java.lang.Object
net.risingworld.api.objects.Item
net.risingworld.api.objects.Item.ClothingItem
- Enclosing class:
Item
Represents a clothing item in the inventory of a player or in a storage box.
This is any type of clothes (or headgear or accessory). Most clothing items are represented by a generic "clothingitem", so they have the same item type ID, but only a different clothing ID (see
This is any type of clothes (or headgear or accessory). Most clothing items are represented by a generic "clothingitem", so they have the same item type ID, but only a different clothing ID (see
getClothingID())-
Nested Class Summary
Nested classes/interfaces inherited from class Item
Item.BlueprintItem, Item.ClothingItem, Item.ConstructionItem, Item.ObjectItem -
Method Summary
Modifier and TypeMethodDescriptionGets the definition of the clothing garment that is represented by this item.shortGets the name of the clothing garment that is represented by this item.longgetLocalizedClothingName(String language) Gets the localized name of the clothing garment 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
-
getClothingID
public short getClothingID() -
getClothingName
Gets the name of the clothing garment that is represented by this item.- Returns:
- the internal name of the garment.
-
getLocalizedClothingName
Gets the localized name of the clothing garment 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 garment.
-
getClothingDefinition
Gets the definition of the clothing garment that is represented by this item.- Returns:
- the clothing definition.
-
getInfoID
public long getInfoID()
-