public class Saddle extends Trait implements Toggleable
Steerable.hasSaddle()
Constructor and Description |
---|
Saddle() |
Modifier and Type | Method and Description |
---|---|
void |
onPlayerInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event) |
void |
onSpawn()
Called when an
NPC is spawned. |
boolean |
toggle() |
String |
toString() |
boolean |
useSaddle() |
public void onPlayerInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event)
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 boolean toggle()
toggle
in interface Toggleable
public boolean useSaddle()
Copyright © 2021. All rights reserved.