Citizens2/main/java/net/citizensnpcs/trait/waypoint/LinearWaypointsCompleteEven...

41 lines
969 B
Java

package net.citizensnpcs.trait.waypoint;
import java.util.Iterator;
import net.citizensnpcs.api.event.CitizensEvent;
import org.bukkit.event.HandlerList;
public class LinearWaypointsCompleteEvent extends CitizensEvent {
private Iterator<Waypoint> next;
private final WaypointProvider provider;
public LinearWaypointsCompleteEvent(WaypointProvider provider, Iterator<Waypoint> next) {
this.next = next;
this.provider = provider;
}
@Override
public HandlerList getHandlers() {
return handlers;
}
public Iterator<Waypoint> getNextWaypoints() {
return next;
}
public WaypointProvider getWaypointProvider() {
return provider;
}
public void setNextWaypoints(Iterator<Waypoint> waypoints) {
this.next = waypoints;
}
private static final HandlerList handlers = new HandlerList();
public static HandlerList getHandlerList() {
return handlers;
}
}