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

Public Member Functions

 __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 ()
 

Protected Attributes

 $__name
 
- Protected Attributes inherited from Tag
 $value
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $name = "",
  $value = null 
)
Parameters
string$name
bool | float | double | int | ByteTag | ShortTag | array | CompoundTag | ListTag | string$value
33  {
34  $this->__name = ($name === null or $name === false) ? "" : $name;
35  if($value !== null){
36  $this->value = $value;
37  }
38  }

Member Function Documentation

◆ getName()

getName ( )
Returns
string
43  {
44  return $this->__name;
45  }

◆ setName()

setName (   $name)
Parameters
$name
50  {
51  $this->__name = $name;
52  }

Field Documentation

◆ $__name

$__name
protected

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