From 75c9ab236dd143d60c01cc0601eea3ab5fb6e51e Mon Sep 17 00:00:00 2001 From: mergu Date: Thu, 17 Jan 2019 18:16:45 -0500 Subject: [PATCH] Add missing tag/mec doc links --- .../denizen/objects/properties/entity/EntityBodyArrows.java | 4 ++++ .../denizen/objects/properties/entity/EntityRiptide.java | 3 +++ 2 files changed, 7 insertions(+) diff --git a/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityBodyArrows.java b/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityBodyArrows.java index acd4a7fc88..d55e211c71 100644 --- a/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityBodyArrows.java +++ b/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityBodyArrows.java @@ -89,6 +89,8 @@ public void adjust(Mechanism mechanism) { // @description // Sets the number of arrows stuck in the entity's body. // Note: Body arrows will only be visible for players or player-type npcs. + // @tags + // // --> if (mechanism.matches("body_arrows") && mechanism.requireInteger()) { setBodyArrows(mechanism.getValue().asInt()); @@ -101,6 +103,8 @@ public void adjust(Mechanism mechanism) { // @description // Clears all arrows stuck in the entity's body. // Note: Body arrows will only be visible for players or player-type npcs. + // @tags + // // --> if (mechanism.matches("clear_body_arrows")) { setBodyArrows(0); diff --git a/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityRiptide.java b/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityRiptide.java index b4719bca7c..38274aed0b 100644 --- a/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityRiptide.java +++ b/plugin/src/main/java/net/aufdemrand/denizen/objects/properties/entity/EntityRiptide.java @@ -56,6 +56,7 @@ public String getAttribute(Attribute attribute) { // <--[tag] // @attribute // @returns Element(Boolean) + // @mechanism dEntity.is_using_riptide // @group properties // @description // Returns whether this entity is using the Riptide enchantment. @@ -77,6 +78,8 @@ public void adjust(Mechanism mechanism) { // @input Element(Boolean) // @description // Sets whether this entity is using the Riptide enchantment. + // @tags + // // --> if (mechanism.matches("is_using_riptide") && mechanism.requireBoolean()) { NMSHandler.getInstance().getEntityHelper().setRiptide(entity.getBukkitEntity(), mechanism.getValue().asBoolean());