Class Item.ClothingItem

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

public static class Item.ClothingItem extends 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 getClothingID())
  • Method Details

    • getClothingID

      public short getClothingID()
    • getClothingName

      public String getClothingName()
      Gets the name of the clothing garment that is represented by this item.
      Returns:
      the internal name of the garment.
    • getLocalizedClothingName

      public String getLocalizedClothingName(String language)
      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 via Player.getLanguage()
      Returns:
      the localized name of the garment.
    • getClothingDefinition

      public Clothing.ClothingDefinition getClothingDefinition()
      Gets the definition of the clothing garment that is represented by this item.
      Returns:
      the clothing definition.
    • getInfoID

      public long getInfoID()