Constructor and Description |
---|
Waypoints() |
Modifier and Type | Method and Description |
---|---|
void |
describeProviders(CommandSender sender) |
WaypointProvider |
getCurrentProvider()
Returns the current
WaypointProvider . |
String |
getCurrentProviderName() |
Editor |
getEditor(CommandSender player,
net.citizensnpcs.api.command.CommandContext args) |
void |
load(net.citizensnpcs.api.util.DataKey key) |
void |
onSpawn() |
static void |
registerWaypointProvider(Class<? extends WaypointProvider> clazz,
String name)
Registers a
WaypointProvider , which can be subsequently used by NPCs. |
void |
save(net.citizensnpcs.api.util.DataKey key) |
boolean |
setWaypointProvider(String name)
Sets the current
WaypointProvider using the given name. |
public void describeProviders(CommandSender sender)
public WaypointProvider getCurrentProvider()
WaypointProvider
. May be null during initialisation.public String getCurrentProviderName()
public Editor getEditor(CommandSender player, net.citizensnpcs.api.command.CommandContext args)
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 void onSpawn()
onSpawn
in class net.citizensnpcs.api.trait.Trait
public void save(net.citizensnpcs.api.util.DataKey key)
save
in class net.citizensnpcs.api.trait.Trait
public boolean setWaypointProvider(String name)
WaypointProvider
using the given name.name
- The name of the waypoint provider, registered using registerWaypointProvider(Class, String)
public static void registerWaypointProvider(Class<? extends WaypointProvider> clazz, String name)
WaypointProvider
, which can be subsequently used by NPCs.clazz
- The class of the waypoint providername
- The name of the waypoint providerCopyright © 2019. All rights reserved.