Package net.risingworld.api.definitions
Class Clothing.ClothingDefinition
java.lang.Object
net.risingworld.api.definitions.Clothing.ClothingDefinition
- Enclosing class:
Clothing
-
Field Summary
Modifier and TypeFieldDescriptionint
Path to an optional alpha mask texture (which will be applied to the player when wearing this clothing piece).Path to the asset (for male and unisex)Path to the asset for the female model.String[]
Array of bones that need to be assigned to the skinned mesh renderer.int
Era/age this clothing piece belongs toGets the special function/behaviour of this clothing piece.Gender which can wear this clothing pieceint
boolean
Determines whether or not the player beard needs to be hidden when wearing this clothing piece (see parameters)boolean
Determines whether or not the player hair needs to be hidden when wearing this clothing piece (see parameters)int
Determines if underwear should be visible while wearing this clothing piece.short
Internal type ID of the clothing pieceint
boolean
boolean
boolean
boolean
Name of the clothing pieceint
Race which can wear this clothing pieceint
Optional other clothing piece that is required for this piece (i.e the entity must wear this clothing piece already).Root bone for the skinned mesh rendererOptional special asset path (e.g light prefab for lamps etc)Affected body types.boolean
Determines if the clothing piece is visible in first-person viewint
-
Method Summary
Modifier and TypeMethodDescriptiongetIcon
(int texture) Gets the ingame icon of these clothes as TextureAsset.void
-
Field Details
-
id
public short idInternal type ID of the clothing piece -
name
Name of the clothing piece -
types
Affected body types. Never null! -
function
Gets the special function/behaviour of this clothing piece. "None" by default -
requirement
Optional other clothing piece that is required for this piece (i.e the entity must wear this clothing piece already). May be null (for no requirement) -
race
Race which can wear this clothing piece -
gender
Gender which can wear this clothing piece -
era
Era/age this clothing piece belongs to -
assetpath
Path to the asset (for male and unisex) -
assetpathfemale
Path to the asset for the female model. If not specified, this will automatically refer to the main "assetpath" -
alphamask
Path to an optional alpha mask texture (which will be applied to the player when wearing this clothing piece). May be null -
hideunderwear
public int hideunderwearDetermines if underwear should be visible while wearing this clothing piece. 0 means all underwear remains visible, 1 means lower underwear is removed, 2 means upper underwear is removed, 3 means all underwear is removed. Only relevant for human clothes -
rootbone
Root bone for the skinned mesh renderer -
bones
Array of bones that need to be assigned to the skinned mesh renderer. May be null -
protection
public int protection -
insulation
public int insulation -
absorbency
public int absorbency -
heatprotection
public int heatprotection -
radiationprotection
public int radiationprotection -
camouflage
public int camouflage -
isarmor
public boolean isarmor -
istool
public boolean istool -
isheadgear
public boolean isheadgear -
isfootwear
public boolean isfootwear -
specialasset
Optional special asset path (e.g light prefab for lamps etc) -
visiblefp
public boolean visiblefpDetermines if the clothing piece is visible in first-person view -
hidehair
public boolean hidehairDetermines whether or not the player hair needs to be hidden when wearing this clothing piece (see parameters) -
hidebeard
public boolean hidebeardDetermines whether or not the player beard needs to be hidden when wearing this clothing piece (see parameters) -
walksound
public int walksound
-
-
Method Details
-
synchronize
public void synchronize() -
getIcon
Gets the ingame icon of these clothes as TextureAsset.- Parameters:
texture
- the cloth texture/variant. By default 0.- Returns:
- the icon of these clothes.
-