DoubleTag
extends ImmutableTag
in package
Table of Contents
- $cloning : bool
- Used for recursive cloning protection when cloning tags with child tags.
- $value : float
- __construct() : mixed
- __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() : float
- read() : self
- 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
$value
private
float
$value
Methods
__construct()
public
__construct(float $value) : mixed
Parameters
- $value : float
Return values
mixed —__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
getType() : int
Return values
int —getValue()
public
getValue() : float
Return values
float —read()
public
static read(NbtStreamReader $reader) : self
Parameters
- $reader : NbtStreamReader
Return values
self —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
write(NbtStreamWriter $writer) : void
Parameters
- $writer : NbtStreamWriter
Return values
void —getTypeName()
protected
getTypeName() : string
Return values
string —makeCopy()
protected
abstract 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
stringifyValue(int $indentation) : string
Parameters
- $indentation : int