Method: CraftBook::NBT::IntTag#initialize

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

#initialize(name, value = 0) ⇒ IntTag

Creates a new instance of the CraftBook::NBT::IntTag class.

Parameters:

  • name (String, NilClass)

    The name of the tag, or nil when unnamed.

  • value (Numeric) (defaults to: 0)

    The value of the tag.



27
28
29
# File 'lib/craftbook/nbt/int_tag.rb', line 27

def initialize(name, value = 0)
  super(TYPE_INT, name, value)
end