Method: CraftBook::NBT::LongTag#stringify

Defined in:
lib/craftbook/nbt/long_tag.rb

#stringifyString

Returns the NBT tag as an SNBT string.

Returns:

  • (String)

    the NBT tag as an SNBT string.



45
46
47
# File 'lib/craftbook/nbt/long_tag.rb', line 45

def stringify
  "#{snbt_prefix}#{@value}L"
end