public class Controllable extends net.citizensnpcs.api.trait.Trait implements Toggleable, net.citizensnpcs.api.command.CommandConfigurable
Modifier and Type | Class and Description |
---|---|
class |
Controllable.GroundController |
class |
Controllable.LookAirController |
static interface |
Controllable.MovementController |
class |
Controllable.PlayerInputAirController |
Constructor and Description |
---|
Controllable() |
Controllable(boolean enabled) |
Modifier and Type | Method and Description |
---|---|
void |
configure(net.citizensnpcs.api.command.CommandContext args) |
boolean |
isEnabled() |
void |
load(net.citizensnpcs.api.util.DataKey key) |
boolean |
mount(Player toMount) |
void |
onPlayerInteract(PlayerInteractEvent event) |
void |
onRightClick(net.citizensnpcs.api.event.NPCRightClickEvent event) |
void |
onSpawn() |
static void |
registerControllerType(EntityType type,
Class<? extends Controllable.MovementController> clazz) |
void |
run() |
void |
save(net.citizensnpcs.api.util.DataKey key) |
boolean |
setEnabled(boolean enabled) |
void |
setOwnerRequired(boolean ownerRequired) |
boolean |
toggle() |
public Controllable()
public Controllable(boolean enabled)
public void configure(net.citizensnpcs.api.command.CommandContext args)
configure
in interface net.citizensnpcs.api.command.CommandConfigurable
public boolean isEnabled()
public void load(net.citizensnpcs.api.util.DataKey key) throws net.citizensnpcs.api.exception.NPCLoadException
load
in class net.citizensnpcs.api.trait.Trait
net.citizensnpcs.api.exception.NPCLoadException
public boolean mount(Player toMount)
public void onPlayerInteract(PlayerInteractEvent event)
public void onRightClick(net.citizensnpcs.api.event.NPCRightClickEvent event)
public void onSpawn()
onSpawn
in class net.citizensnpcs.api.trait.Trait
public void run()
public void save(net.citizensnpcs.api.util.DataKey key)
save
in class net.citizensnpcs.api.trait.Trait
public boolean setEnabled(boolean enabled)
public void setOwnerRequired(boolean ownerRequired)
public boolean toggle()
toggle
in interface Toggleable
public static void registerControllerType(EntityType type, Class<? extends Controllable.MovementController> clazz)
Copyright © 2019. All rights reserved.