Search in sources :

Example 1 with NPCTag

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);
}
Also used : NPCTag(com.denizenscript.denizen.objects.NPCTag) EventHandler(org.bukkit.event.EventHandler)

Example 2 with NPCTag

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);
}
Also used : NPCTag(com.denizenscript.denizen.objects.NPCTag) EventHandler(org.bukkit.event.EventHandler)

Example 3 with NPCTag

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);
}
Also used : LocationTag(com.denizenscript.denizen.objects.LocationTag) NPCTag(com.denizenscript.denizen.objects.NPCTag) EventHandler(org.bukkit.event.EventHandler)

Example 4 with NPCTag

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);
}
Also used : NPCTag(com.denizenscript.denizen.objects.NPCTag) EventHandler(org.bukkit.event.EventHandler)

Example 5 with NPCTag

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;
}
Also used : NPCTag(com.denizenscript.denizen.objects.NPCTag)

Aggregations

NPCTag (com.denizenscript.denizen.objects.NPCTag)72 ElementTag (com.denizenscript.denizencore.objects.core.ElementTag)24 EventHandler (org.bukkit.event.EventHandler)22 PlayerTag (com.denizenscript.denizen.objects.PlayerTag)21 Player (org.bukkit.entity.Player)15 LocationTag (com.denizenscript.denizen.objects.LocationTag)12 EntityTag (com.denizenscript.denizen.objects.EntityTag)10 ListTag (com.denizenscript.denizencore.objects.core.ListTag)9 ScriptEntry (com.denizenscript.denizencore.scripts.ScriptEntry)8 HashMap (java.util.HashMap)8 NPC (net.citizensnpcs.api.npc.NPC)8 ObjectTag (com.denizenscript.denizencore.objects.ObjectTag)7 AssignmentTrait (com.denizenscript.denizen.npc.traits.AssignmentTrait)6 Location (org.bukkit.Location)6 TriggerTrait (com.denizenscript.denizen.npc.traits.TriggerTrait)5 BukkitScriptEntryData (com.denizenscript.denizen.utilities.implementation.BukkitScriptEntryData)5 DurationTag (com.denizenscript.denizencore.objects.core.DurationTag)5 ArrayList (java.util.ArrayList)5 List (java.util.List)5 Entity (org.bukkit.entity.Entity)5