Package net.citizensnpcs.trait
Class WolfModifiers
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.WolfModifiers
Persists
Wolf
metadata.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAngry()
boolean
boolean
isTamed()
void
onSpawn()
Called when anNPC
is spawned.void
setAngry
(boolean angry) void
setCollarColor
(DyeColor color) void
setSitting
(boolean sitting) void
setTamed
(boolean tamed)
-
Constructor Details
-
WolfModifiers
public WolfModifiers()
-
-
Method Details
-
getCollarColor
-
isAngry
public boolean isAngry() -
isSitting
public boolean isSitting() -
isTamed
public boolean isTamed() -
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. -
setAngry
public void setAngry(boolean angry) -
setCollarColor
-
setSitting
public void setSitting(boolean sitting) -
setTamed
public void setTamed(boolean tamed)
-