PocketMine-MP 5.37.4 git-0c453f585430c41919390ec01ffeb1e004b5334b
Loading...
Searching...
No Matches
pocketmine\nbt\tag\Tag Class Reference
+ Inheritance diagram for pocketmine\nbt\tag\Tag:
+ Collaboration diagram for pocketmine\nbt\tag\Tag:

Public Member Functions

 __toString ()
 
 equals (Tag $that)
 
 getType ()
 
 getValue ()
 
 safeClone ()
 
 toString (int $indentation=0)
 
 write (NbtStreamWriter $writer)
 

Protected Member Functions

 getTypeName ()
 
 makeCopy ()
 
 stringifyValue (int $indentation)
 

Static Protected Member Functions

static restrictArgCount (string $func, int $haveArgs, int $wantMaxArgs)
 

Protected Attributes

 $cloning = false
 

Detailed Description

Definition at line 28 of file Tag.php.

Member Function Documentation

◆ __toString()

pocketmine\nbt\tag\Tag::__toString ( )

Definition at line 43 of file Tag.php.

◆ equals()

pocketmine\nbt\tag\Tag::equals ( Tag $that)

Compares this Tag to the given Tag and determines whether or not they are equal, based on type and value. Complex tag types should override this to provide proper value comparison.

Reimplemented in pocketmine\nbt\tag\CompoundTag, pocketmine\nbt\tag\FloatTag, and pocketmine\nbt\tag\ListTag.

Definition at line 85 of file Tag.php.

◆ getValue()

◆ makeCopy()

pocketmine\nbt\tag\Tag::makeCopy ( )
abstractprotected

◆ restrictArgCount()

static pocketmine\nbt\tag\Tag::restrictArgCount ( string $func,
int $haveArgs,
int $wantMaxArgs )
staticprotected

Definition at line 89 of file Tag.php.

◆ safeClone()

pocketmine\nbt\tag\Tag::safeClone ( )

Clones this tag safely, detecting recursive dependencies which would otherwise cause an infinite cloning loop. Used for cloning tags in tags that have children.

Exceptions

RuntimeException if a recursive dependency was detected

Returns
static

Definition at line 62 of file Tag.php.

◆ toString()

pocketmine\nbt\tag\Tag::toString ( int $indentation = 0)
final

Definition at line 47 of file Tag.php.

Member Data Documentation

◆ $cloning

pocketmine\nbt\tag\Tag::$cloning = false
protected

Definition at line 34 of file Tag.php.


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