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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhide()
hideCape()
hideHat()
boolean
isVisible
(SkinLayers.Layer layer) void
onAttach()
Called when the trait has been attached to anNPC
.void
onSpawn()
Called when anNPC
is 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:Trait
Called when anNPC
is 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
-