Skip to content

Commit

Permalink
Update all NPC tag meta to include the n@notation
Browse files Browse the repository at this point in the history
Straight-forward meta fix
  • Loading branch information
mcmonkey4eva committed Nov 7, 2013
1 parent f034952 commit 2e7090e
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/main/java/net/aufdemrand/denizen/objects/dNPC.java
Expand Up @@ -294,7 +294,7 @@ public String getAttribute(Attribute attribute) {
if (attribute == null) return "null";

// <--[tag]
// @attribute <npc.name.nickname>
// @attribute <n@npc.name.nickname>
// @returns Element
// @description
// returns the NPC's display name.
Expand All @@ -304,7 +304,7 @@ public String getAttribute(Attribute attribute) {
.getNickname() : getName()).getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.name>
// @attribute <n@npc.name>
// @returns Element
// @description
// returns the name of the NPC.
Expand All @@ -314,7 +314,7 @@ public String getAttribute(Attribute attribute) {
.getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <npc.list_traits>
// @attribute <n@npc.list_traits>
// @returns dList
// @description
// Returns a list of all of the NPC's traits.
Expand All @@ -327,7 +327,7 @@ public String getAttribute(Attribute attribute) {
}

// <--[tag]
// @attribute <npc.has_trait[<trait>]>
// @attribute <n@npc.has_trait[<trait>]>
// @returns Element(Boolean)
// @description
// Returns whether the NPC has a specified trait.
Expand All @@ -342,7 +342,7 @@ public String getAttribute(Attribute attribute) {
}

// <--[tag]
// @attribute <npc.anchor.list>
// @attribute <n@npc.anchor.list>
// @returns dList
// @description
// returns a list of anchor names currently assigned to the NPC.
Expand All @@ -356,7 +356,7 @@ public String getAttribute(Attribute attribute) {
}

// <--[tag]
// @attribute <npc.has_anchors>
// @attribute <n@npc.has_anchors>
// @returns Element(Boolean)
// @description
// returns whether the NPC has anchors assigned.
Expand All @@ -367,7 +367,7 @@ public String getAttribute(Attribute attribute) {
}

// <--[tag]
// @attribute <npc.anchor[name]>
// @attribute <n@npc.anchor[name]>
// @returns dLocation
// @description
// returns the location associated with the specified anchor, or null if it doesn't exist.
Expand All @@ -394,7 +394,7 @@ && getCitizen().getTrait(Anchors.class).getAnchor(attribute.getContext(1)) != nu
}

// <--[tag]
// @attribute <npc.flag[flag_name]>
// @attribute <n@npc.flag[flag_name]>
// @returns Flag dList
// @description
// returns the specified flag from the NPC.
Expand All @@ -418,7 +418,7 @@ && getCitizen().getTrait(Anchors.class).getAnchor(attribute.getContext(1)) != nu
}

// <--[tag]
// @attribute <npc.constant[constant_name]>
// @attribute <n@npc.constant[constant_name]>
// @returns Element
// @description
// returns the specified constant from the NPC.
Expand All @@ -438,7 +438,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
}

// <--[tag]
// @attribute <npc.id>
// @attribute <n@npc.id>
// @returns Element(Number)
// @description
// returns the NPC's ID number.
Expand All @@ -447,7 +447,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
return new Element(getId()).getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <npc.owner>
// @attribute <n@npc.owner>
// @returns dPlayer/Element
// @description
// returns the owner of the NPC as a dPlayer if it's a player, otherwise as just the name.
Expand All @@ -460,7 +460,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
}

// <--[tag]
// @attribute <npc.inventory>
// @attribute <n@npc.inventory>
// @returns dInventory
// @description
// Returns the dInventory of the NPC.
Expand All @@ -469,7 +469,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
return getDenizenEntity().getInventory().getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <npc.is_spawned>
// @attribute <n@npc.is_spawned>
// @returns Element(Boolean)
// @description
// returns whether the NPC is spawned.
Expand All @@ -478,7 +478,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
return new Element(isSpawned()).getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <npc.location.previous_location>
// @attribute <n@npc.location.previous_location>
// @returns dLocation
// @description
// returns the NPC's previous navigated location.
Expand All @@ -489,7 +489,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
: "null");

// <--[tag]
// @attribute <npc.script>
// @attribute <n@npc.script>
// @returns dScript
// @description
// returns the NPC's assigned script.
Expand All @@ -506,7 +506,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
}

// <--[tag]
// @attribute <npc.navigator.is_navigating>
// @attribute <n@npc.navigator.is_navigating>
// @returns Element(Boolean)
// @description
// returns whether the NPC is currently navigating.
Expand All @@ -515,7 +515,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
return new Element(getNavigator().isNavigating()).getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.speed>
// @attribute <n@npc.navigator.speed>
// @returns Element(Number)
// @description
// returns the current speed of the NPC.
Expand All @@ -525,7 +525,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.range>
// @attribute <n@npc.navigator.range>
// @returns Element(Number)
// @description
// returns the maximum pathfinding range.
Expand All @@ -535,7 +535,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.attack_strategy>
// @attribute <n@npc.navigator.attack_strategy>
// @returns Element
// @description
// returns the NPC's attack strategy.
Expand All @@ -545,7 +545,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.speed_modifier>
// @attribute <n@npc.navigator.speed_modifier>
// @returns Element(Number)
// @description
// returns the NPC movement speed modifier.
Expand All @@ -555,7 +555,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.base_speed>
// @attribute <n@npc.navigator.base_speed>
// @returns Element(Number)
// @description
// returns the base navigation speed.
Expand All @@ -565,7 +565,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.avoid_water>
// @attribute <n@npc.navigator.avoid_water>
// @returns Element(Boolean)
// @description
// returns whether the NPC will avoid water.
Expand All @@ -575,7 +575,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.target_location>
// @attribute <n@npc.navigator.target_location>
// @returns dLocation
// @description
// returns the location the NPC is curently navigating towards.
Expand All @@ -586,7 +586,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
: "null");

// <--[tag]
// @attribute <npc.navigator.is_fighting>
// @attribute <n@npc.navigator.is_fighting>
// @returns Element(Boolean)
// @description
// returns whether the NPC is in combat.
Expand All @@ -596,7 +596,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.target_type>
// @attribute <n@npc.navigator.target_type>
// @returns Element
// @description
// returns the entity type of the target.
Expand All @@ -606,7 +606,7 @@ && getCitizen().getTrait(ConstantsTrait.class).getConstant(attribute.getContext(
.getAttribute(attribute.fulfill(2));

// <--[tag]
// @attribute <npc.navigator.target_entity>
// @attribute <n@npc.navigator.target_entity>
// @returns dEntity
// @description
// returns the entity being targeted.
Expand Down

0 comments on commit 2e7090e

Please sign in to comment.