Skip to content

Commit

Permalink
Add missing tag/mec doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
mergu committed Jan 17, 2019
1 parent 8f50532 commit 75c9ab2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -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
// <e@entity.body_arrows>
// -->
if (mechanism.matches("body_arrows") && mechanism.requireInteger()) {
setBodyArrows(mechanism.getValue().asInt());
Expand All @@ -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
// <e@entity.body_arrows>
// -->
if (mechanism.matches("clear_body_arrows")) {
setBodyArrows(0);
Expand Down
Expand Up @@ -56,6 +56,7 @@ public String getAttribute(Attribute attribute) {
// <--[tag]
// @attribute <e@entity.is_using_riptide>
// @returns Element(Boolean)
// @mechanism dEntity.is_using_riptide
// @group properties
// @description
// Returns whether this entity is using the Riptide enchantment.
Expand All @@ -77,6 +78,8 @@ public void adjust(Mechanism mechanism) {
// @input Element(Boolean)
// @description
// Sets whether this entity is using the Riptide enchantment.
// @tags
// <e@entity.is_using_riptide>
// -->
if (mechanism.matches("is_using_riptide") && mechanism.requireBoolean()) {
NMSHandler.getInstance().getEntityHelper().setRiptide(entity.getBukkitEntity(), mechanism.getValue().asBoolean());
Expand Down

0 comments on commit 75c9ab2

Please sign in to comment.