Package net.citizensnpcs.trait
Class ScaledMaxHealthTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.ScaledMaxHealthTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDamage
(NPCDamageEvent event) void
onSpawn()
Called when anNPC
is spawned.void
setMaxHealth
(Double maxHealth)
-
Constructor Details
-
ScaledMaxHealthTrait
public ScaledMaxHealthTrait()
-
-
Method Details
-
getMaxHealth
-
onDamage
-
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. -
setMaxHealth
-