Method: CraftBook::NBT::TagBuilder#byte_array

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

#byte_array(name, *values) ⇒ self

Creates a ByteArrayTag from the specified values, and adds it to the current node.

Parameters:

  • values (Array<Integer>, Enumerable)

    The child values of the tag.

  • name (String, NilClass)

    The name of the tag, or nil when adding to a ListTag node.

Returns:

  • (self)


142
143
144
# File 'lib/craftbook/nbt/tag_builder.rb', line 142

def byte_array(name, *values)
  add(ByteArrayTag.new(name, *values))
end