Class: NBTUtils::Tag::End

Inherits:
Object
  • Object
show all
Includes:
NBTUtils::Tag
Defined in:
lib/nbt_utils/tag/end.rb

Instance Attribute Summary

Attributes included from NBTUtils::Tag

#name, #payload

Instance Method Summary collapse

Methods included from NBTUtils::Tag

add_tag_type, #binary_type_id, included, #name_to_nbt_string, #read_name, #set_value, #tag_type_to_class, tag_type_to_class, #type_id

Constructor Details

#initializeEnd

Returns a new instance of End.



10
11
12
# File 'lib/nbt_utils/tag/end.rb', line 10

def initialize(...)
  @name = ''
end

Instance Method Details

#to_nbt_stringObject



18
19
20
# File 'lib/nbt_utils/tag/end.rb', line 18

def to_nbt_string(...)
  binary_type_id
end

#to_sObject



14
15
16
# File 'lib/nbt_utils/tag/end.rb', line 14

def to_s(...)
  ''
end