2012-02-23 00:59:51 +01:00
|
|
|
package net.citizensnpcs.trait.waypoint;
|
2012-02-22 15:05:28 +01:00
|
|
|
|
2012-07-19 14:58:22 +02:00
|
|
|
import net.citizensnpcs.api.ai.Goal;
|
|
|
|
import net.citizensnpcs.api.npc.NPC;
|
2012-02-23 11:10:38 +01:00
|
|
|
import net.citizensnpcs.api.util.DataKey;
|
2012-02-22 15:05:28 +01:00
|
|
|
import net.citizensnpcs.editor.Editor;
|
|
|
|
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
|
|
|
|
public interface WaypointProvider {
|
2012-03-02 21:42:34 +01:00
|
|
|
|
2012-03-02 14:04:40 +01:00
|
|
|
/**
|
|
|
|
* Creates an {@link Editor} with the given {@link Player}.
|
|
|
|
*
|
|
|
|
* @param player
|
|
|
|
* The player to link the editor with
|
|
|
|
* @return The editor
|
|
|
|
*/
|
2012-02-22 15:05:28 +01:00
|
|
|
public Editor createEditor(Player player);
|
|
|
|
|
2012-07-19 14:58:22 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param npc
|
|
|
|
* The attached {@link NPC} the goal is for.
|
|
|
|
* @return The {@link Goal} to attach to the NPC.
|
|
|
|
*/
|
|
|
|
public Goal getGoal(NPC npc);
|
|
|
|
|
2012-03-02 14:04:40 +01:00
|
|
|
/**
|
|
|
|
* Loads from the specified {@link DataKey}.
|
|
|
|
*
|
|
|
|
* @param key
|
|
|
|
* The key to load from
|
|
|
|
*/
|
2012-02-23 11:10:38 +01:00
|
|
|
public void load(DataKey key);
|
|
|
|
|
2012-03-02 14:04:40 +01:00
|
|
|
/**
|
|
|
|
* Saves to the specified {@link DataKey}.
|
|
|
|
*
|
|
|
|
* @param key
|
|
|
|
* The key to save to
|
|
|
|
*/
|
2012-02-23 11:10:38 +01:00
|
|
|
public void save(DataKey key);
|
2012-02-23 00:59:51 +01:00
|
|
|
}
|