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
Gets 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)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 clothing types.boolean
Determines if the clothing piece is visible in first-person viewint
-
Method Summary
-
Field Details
-
id
public short idInternal type ID of the clothing piece -
name
Name of the clothing piece -
types
Affected clothing 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 -
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 -
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()
-