Package net.citizensnpcs.trait
Class RabbitType
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.RabbitType
Persists Rabbit metadata.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonSpawn()Called when anNPCis spawned.voidsetType(Rabbit.Type type)
-
Constructor Details
-
RabbitType
public RabbitType()
-
-
Method Details
-
getRabbitType
-
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. -
setType
-