use of com.denizenscript.denizen.objects.NPCTag in project Denizen-For-Bukkit by DenizenScript.
the class NPCNavigationScriptEvent method navComplete.
@EventHandler
public void navComplete(NavigationCompleteEvent event) {
npc = new NPCTag(event.getNPC());
type = "completes";
fire(event);
}
use of com.denizenscript.denizen.objects.NPCTag in project Denizen-For-Bukkit by DenizenScript.
the class NPCNavigationScriptEvent method navBegin.
@EventHandler
public void navBegin(NavigationBeginEvent event) {
npc = new NPCTag(event.getNPC());
type = "begins";
fire(event);
}
use of com.denizenscript.denizen.objects.NPCTag in project Denizen-For-Bukkit by DenizenScript.
the class NPCOpensScriptEvent method NPCOpenGate.
@EventHandler
public void NPCOpenGate(NPCOpenGateEvent event) {
npc = new NPCTag(event.getNPC());
location = new LocationTag(event.getGate().getLocation());
fire(event);
}
use of com.denizenscript.denizen.objects.NPCTag in project Denizen-For-Bukkit by DenizenScript.
the class NPCStuckScriptEvent method navStuck.
@EventHandler
public void navStuck(NavigationStuckEvent event) {
this.npc = new NPCTag(event.getNPC());
this.event = event;
fire(event);
}
use of com.denizenscript.denizen.objects.NPCTag in project Denizen-For-Bukkit by DenizenScript.
the class FishingTrait method stopFishing.
// <--[action]
// @Actions
// stop fishing
//
// @Triggers when the NPC stops fishing. See also <@link command fish>.
//
// @Context
// None
//
// -->
/**
* Makes the stop fishing.
*/
public void stopFishing() {
new NPCTag(npc).action("stop fishing", null);
reel();
reelCount = 100;
castCount = 0;
fishingLocation = null;
fishing = false;
}
Aggregations