Skip to content

Commit

Permalink
add <n@npc.pushable>
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Feb 1, 2016
1 parent a1084c2 commit 4910879
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dNPC.java
Expand Up @@ -531,6 +531,16 @@ public String getAttribute(Attribute attribute) {
}
}

// <--[tag]
// @attribute <n@npc.pushable>
// @returns Element(Boolean)
// @description
// Returns whether the NPC is pushable.
// -->
if (attribute.startsWith("pushable") || attribute.startsWith("is_pushable")) {
return new Element(getPushableTrait().isPushable()).getAttribute(attribute.fulfill(1));
}

// <--[tag]
// @attribute <n@npc.has_trigger[<trigger>]>
// @returns Element(Boolean)
Expand Down

0 comments on commit 4910879

Please sign in to comment.