Package net.citizensnpcs.trait
Class TargetableTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.TargetableTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTargeter
(UUID uuid) void
boolean
void
Called just before the attachedNPC
is despawned.void
removeTargeter
(UUID uuid) void
setTargetable
(boolean targetable)
-
Constructor Details
-
TargetableTrait
public TargetableTrait()
-
-
Method Details
-
addTargeter
-
clearTargeters
public void clearTargeters() -
isTargetable
public boolean isTargetable() -
onDespawn
public void onDespawn()Description copied from class:Trait
Called just before the attachedNPC
is despawned.NPC.getEntity()
will be non-null. -
removeTargeter
-
setTargetable
public void setTargetable(boolean targetable)
-