Package net.citizensnpcs.trait
Class HorseModifiers
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.HorseModifiers
Persists various
Horse
metadata.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetArmor()
getColor()
getStyle()
void
onSpawn()
Called when anNPC
is spawned.void
run()
Called every tick if overridden.void
void
setCarryingChest
(boolean carryingChest) void
setColor
(Horse.Color color) void
void
setStyle
(Horse.Style style)
-
Constructor Details
-
HorseModifiers
public HorseModifiers()
-
-
Method Details
-
getArmor
-
getColor
- See Also:
-
getSaddle
-
getStyle
- See Also:
-
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. -
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setArmor
-
setCarryingChest
public void setCarryingChest(boolean carryingChest) - See Also:
-
setColor
- See Also:
-
setSaddle
-
setStyle
- See Also:
-