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 Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
SkinLayers
public SkinLayers()
-
-
Method Details
-
hide
-
hideCape
-
hideHat
-
hideJacket
-
hideLeftPants
-
hideLeftSleeve
-
hidePants
-
hideRightPants
-
hideRightSleeve
-
hideSleeves
-
isVisible
-
onAttach
public void onAttach()Description copied from class:Trait -
onSpawn
public 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
-