ImmutableTag
extends Tag
in package
Table of Contents
- $cloning : bool
- Used for recursive cloning protection when cloning tags with child tags.
- __toString() : mixed
- equals() : bool
- Compares this Tag to the given Tag and determines whether or not they are equal, based on type and value.
- getType() : int
- getValue() : mixed
- safeClone() : Tag
- Clones this tag safely, detecting recursive dependencies which would otherwise cause an infinite cloning loop.
- toString() : string
- write() : void
- getTypeName() : string
- makeCopy() : static
- restrictArgCount() : void
- stringifyValue() : string
Properties
$cloning
Used for recursive cloning protection when cloning tags with child tags.
protected
bool
$cloning
= false
Methods
__toString()
public
__toString() : mixed
Return values
mixed —equals()
Compares this Tag to the given Tag and determines whether or not they are equal, based on type and value.
public
equals(Tag $that) : bool
Complex tag types should override this to provide proper value comparison.
Parameters
- $that : Tag
Return values
bool —getType()
public
abstract getType() : int
Return values
int —getValue()
public
abstract getValue() : mixed
Return values
mixed —safeClone()
Clones this tag safely, detecting recursive dependencies which would otherwise cause an infinite cloning loop.
public
safeClone() : Tag
Used for cloning tags in tags that have children.
Tags
Return values
Tag —toString()
public
final toString([int $indentation = 0 ]) : string
Parameters
- $indentation : int = 0
Return values
string —write()
public
abstract write(NbtStreamWriter $writer) : void
Parameters
- $writer : NbtStreamWriter
Return values
void —getTypeName()
protected
abstract getTypeName() : string
Return values
string —makeCopy()
protected
makeCopy() : static
Return values
static —restrictArgCount()
protected
static restrictArgCount(string $func, int $haveArgs, int $wantMaxArgs) : void
Parameters
- $func : string
- $haveArgs : int
- $wantMaxArgs : int
Return values
void —stringifyValue()
protected
abstract stringifyValue(int $indentation) : string
Parameters
- $indentation : int