Klasse Clothes.Garment

java.lang.Object
net.risingworld.api.objects.Clothes.Garment
Umschließende Klasse:
Clothes

public static class Clothes.Garment extends Object
Represents a single piece of clothing.
  • Methodendetails

    • getID

      public short getID()
      Gets the clothing type id of this garment.
      Gibt zurück:
      the clothing id.
    • getDefinition

      public Clothing.ClothingDefinition getDefinition()
      Gets the clothing definition related to this garment.
      Gibt zurück:
      the clothing definition.
    • getColor

      public int getColor()
      Gets the optional color of this garment (as RGBA int). By default 0
      Gibt zurück:
      the optional color.
    • getInfoID

      public long getInfoID()
      Gets an optional info ID that is associated with this garment. For instance, if the garment is linked to a storage (e.g a saddle bag), the global storage ID is stored in this field.
      Gibt zurück:
      the optional info ID of the garment.
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object