GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
StringTag Class Reference

Public Member Functions

 getType ()
 
 read (NBT $nbt, bool $network=false)
 
 write (NBT $nbt, bool $network=false)
 
- Public Member Functions inherited from NamedTag
 __construct ($name="", $value=null)
 
 getName ()
 
 setName ($name)
 
- Public Member Functions inherited from Tag
getValue ()
 
 getType ()
 
 setValue ($value)
 
 write (NBT $nbt, bool $network=false)
 
 read (NBT $nbt, bool $network=false)
 
 __toString ()
 

Additional Inherited Members

- Protected Attributes inherited from NamedTag
 $__name
 
- Protected Attributes inherited from Tag
 $value
 

Member Function Documentation

◆ getType()

getType ( )
Returns
int
33  {
34  return NBT::TAG_String;
35  }

◆ read()

read ( NBT  $nbt,
bool  $network = false 
)
Parameters
NBT$nbt
bool$network
Returns
mixed|void
43  {
44  $this->value = $nbt->getString($network);
45  }

◆ write()

write ( NBT  $nbt,
bool  $network = false 
)
Parameters
NBT$nbt
bool$network
Returns
mixed|void
53  {
54  $nbt->putString($this->value, $network);
55  }

The documentation for this class was generated from the following file: