Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for saicone

The "readable tag" library, an easy way to handle block, entity, item NBT and data components

Report Rtag?

Release
1.5.6

Rubenicos released Rtag version 1.5.6 on September 3, 2024

Additions

  • Blazingly fast item edits!, now any RtagItem usage is practically invisible for server performance.
  • ItemObject#newCraftItem() to create CraftItemStack using ItemStack.
  • ItemObject#loadHandle() to explicitly load handle into ItemStack using a CraftItemStack mirror.
  • ItemObject#getCraftStack() to get delegated CraftItemStack from ItemStack object (Only for Paper +1.21).
  • ItemObject#getUncheckedHandle() to get handle from CraftItemStack unsafely.
  • ItemObject#asCraftMirror() to convert ItemStack to it's CraftItemStack form.
  • ItemData class dedicated to item data handling.
  • ItemData#getItemVersion() to get the nearest minecraft version from item by reading item data.
  • RtagItem#getLiteralTag() to get current item tag or null.
  • RtagItem#loadInto() to load changes into provided minecraft ItemStack.
  • Proper conversion for new component changes.

Changes

  • Now item changes are applied directly to items.
  • Avoid rtag plugin code remap on newer paper servers.
  • Now ItemObject#setHandle() replaces CraftItemStack handle directly or create a bukkit copy of provided handle to apply changes into item.
  • Most of deprecated methods are marked to deletion on 1.6.0 update.
  • Now ItemTagStream uses ItemData to detect item version from compound.
  • RtagItem now doesn't clone or create any tag unless you're trying to edit it.
  • RtagItem now allows to clear item tag.

Bug Fixes

  • Recursive reflection on EasyLookup doesn't detect some legacy fork patches.
  • Component mirror doesn't change enchantment sweeping into sweeping_edge (and vicerverse).

Deprecations

  • ItemObject#getComponentPath() and ItemObject#getTagPath(), use ItemData methods instead.

Information

Published onSeptember 3, 2024
Downloads0

Platforms

Paper Paper (1.8-1.21.1)