Package net.citizensnpcs.trait
Class OcelotModifiers
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.OcelotModifiers
Persists Ocelot metadata.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onSpawn()
Called when anNPC
is spawned.void
setSitting
(boolean sit) void
setType
(Ocelot.Type type) boolean
-
Constructor Details
-
OcelotModifiers
public OcelotModifiers()
-
-
Method Details
-
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. -
setSitting
public void setSitting(boolean sit) -
setType
-
supportsOcelotType
public boolean supportsOcelotType()
-