Constructor and Description |
---|
CurrentLocation() |
Modifier and Type | Method and Description |
---|---|
float |
getBodyYaw() |
org.bukkit.Location |
getLocation() |
void |
load(DataKey key)
Loads a trait.
|
void |
onSpawn()
Called when an
NPC is spawned. |
void |
run()
Called every tick if overridden.
|
void |
setLocation(org.bukkit.Location loc) |
String |
toString() |
public float getBodyYaw()
public org.bukkit.Location getLocation()
public void onSpawn()
Trait
NPC
is spawned. NPC.getEntity()
will return null until this is called. This is
also called onAttach when the NPC is already spawned.public void run()
Trait
public void setLocation(org.bukkit.Location loc)
Copyright © 2021. All rights reserved.