Package net.risingworld.api.definitions
Class Clothing.ClothingDefinition
java.lang.Object
net.risingworld.api.definitions.Clothing.ClothingDefinition
- Enclosing class:
- Clothing
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintPath 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.intEra/age this clothing piece belongs toGets the special function/behaviour of this clothing piece.Gender which can wear this clothing pieceintbooleanDetermines whether or not the player beard needs to be hidden when wearing this clothing piece (see parameters)booleanDetermines whether or not the player hair needs to be hidden when wearing this clothing piece (see parameters)intDetermines if underwear should be visible while wearing this clothing piece.shortInternal type ID of the clothing pieceintbooleanbooleanbooleanbooleanName of the clothing pieceintRace which can wear this clothing pieceintOptional 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.booleanDetermines if the clothing piece is visible in first-person viewint
- 
Method SummaryModifier and TypeMethodDescriptiongetIcon(int texture) Gets the ingame icon of these clothes as TextureAsset.void
- 
Field Details- 
idpublic short idInternal type ID of the clothing piece
- 
nameName of the clothing piece
- 
typesAffected body types. Never null!
- 
functionGets the special function/behaviour of this clothing piece. "None" by default
- 
requirementOptional 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)
- 
raceRace which can wear this clothing piece
- 
genderGender which can wear this clothing piece
- 
eraEra/age this clothing piece belongs to
- 
assetpathPath to the asset (for male and unisex)
- 
assetpathfemalePath to the asset for the female model. If not specified, this will automatically refer to the main "assetpath"
- 
alphamaskPath to an optional alpha mask texture (which will be applied to the player when wearing this clothing piece). May be null
- 
hideunderwearpublic 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
- 
rootboneRoot bone for the skinned mesh renderer
- 
bonesArray of bones that need to be assigned to the skinned mesh renderer. May be null
- 
protectionpublic int protection
- 
insulationpublic int insulation
- 
absorbencypublic int absorbency
- 
heatprotectionpublic int heatprotection
- 
radiationprotectionpublic int radiationprotection
- 
camouflagepublic int camouflage
- 
isarmorpublic boolean isarmor
- 
istoolpublic boolean istool
- 
isheadgearpublic boolean isheadgear
- 
isfootwearpublic boolean isfootwear
- 
specialassetOptional special asset path (e.g light prefab for lamps etc)
- 
visiblefppublic boolean visiblefpDetermines if the clothing piece is visible in first-person view
- 
hidehairpublic boolean hidehairDetermines whether or not the player hair needs to be hidden when wearing this clothing piece (see parameters)
- 
hidebeardpublic boolean hidebeardDetermines whether or not the player beard needs to be hidden when wearing this clothing piece (see parameters)
- 
walksoundpublic int walksound
 
- 
- 
Method Details- 
synchronizepublic void synchronize()
- 
getIconGets the ingame icon of these clothes as TextureAsset.- Parameters:
- texture- the cloth texture/variant. By default 0.
- Returns:
- the icon of these clothes.
 
 
-