Skip to content

Commit

Permalink
ItemTag.meta_type
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 25, 2021
1 parent f206be9 commit 213111f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,18 @@ public static void registerTags() {
return new ElementTag(NMSHandler.getItemHelper().getJsonString(object.item));
});

// <--[tag]
// @attribute <ItemTag.meta_type>
// @returns ElementTag
// @group conversion
// @description
// Returns the name of the Bukkit item meta type that applies to this item.
// This is for debugging purposes.
// -->
registerTag("meta_type", (attribute, object) -> {
return new ElementTag(object.getItemMeta().getClass().getName());
});

// <--[tag]
// @attribute <ItemTag.bukkit_serial>
// @returns ElementTag
Expand Down

0 comments on commit 213111f

Please sign in to comment.