Package net.citizensnpcs.trait
Class SkinLayers
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.SkinLayers
Persists skin layers that should/should not be visible on the NPC skin.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionhide()hideCape()hideHat()booleanisVisible(SkinLayers.Layer layer) voidonAttach()Called when the trait has been attached to anNPC.voidonSpawn()Called when anNPCis spawned.setVisible(SkinLayers.Layer layer, boolean isVisible) show()showCape()showHat()toString()
- 
Constructor Details- 
SkinLayerspublic SkinLayers()
 
- 
- 
Method Details- 
hide
- 
hideCape
- 
hideHat
- 
hideJacket
- 
hideLeftPants
- 
hideLeftSleeve
- 
hidePants
- 
hideRightPants
- 
hideRightSleeve
- 
hideSleeves
- 
isVisible
- 
onAttachpublic void onAttach()Description copied from class:Trait
- 
onSpawnpublic void onSpawn()Description copied from class:TraitCalled when anNPCis spawned.NPC.getEntity()will return null until this is called. This is also called onAttach when the NPC is already spawned.
- 
setVisible
- 
show
- 
showCape
- 
showHat
- 
showJacket
- 
showLeftPants
- 
showLeftSleeve
- 
showPants
- 
showRightPants
- 
showRightSleeve
- 
showSleeves
- 
toString
 
-