Sha256: 0099ba35e1f073f073c0ea1f2a56fadde45aff2a758fd84465d3b5291c20e687
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 # frozen_string_literal: true require 'bundler' Bundler.require :default require File.expand_path('./lib/nbt_utils', File.dirname(__FILE__)) require 'zlib' @compound = nil # file = NBTUtils::File.new('doc/test.nbt') # @compound = file.read # # puts @compound.to_s # # @compound.update_tag('name', 'asdf') # puts @compound.to_s # # @compound.remove_tag('name') # puts @compound.to_s # puts @compound.to_nbt_string # NBTUtils::File.new.write('biglolwut.nbt', @compound) # @compound = NBTUtils::File.new.read('doc/bigtest.nbt') # puts @compound.to_s @compound = NBTUtils::File.new.read('doc/test.mclevel') puts @compound.to_s # puts @compound.to_nbt_string # NBTUtils::File.new.write('biglolwut.nbt', @compound) # p @compound.find_tag(/Test/) # p @compound.find_tag('Test') # p @compound.find_tag('intTest') # p @compound.find_tags(/(?:byte|int)Test/) # p @compound.find_tags 'intasdf'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nbt_utils-0.5.0 | script.rb |