Package net.risingworld.api.objects
Class Clothes.Garment
java.lang.Object
net.risingworld.api.objects.Clothes.Garment
- Enclosing class:
Clothes
Represents a single piece of clothing.
-
Method Summary
-
Method Details
-
getID
public short getID()Gets the clothing type id of this garment.- Returns:
- the clothing id.
-
getDefinition
Gets the clothing definition related to this garment.- Returns:
- the clothing definition.
-
getColor
public int getColor()Gets the optional color of this garment (as RGBA int). By default 0- Returns:
- 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.- Returns:
- the optional info ID of the garment.
-
toString
-