IntTag
extends ImmutableTag
in package
Uses
IntegerishTagTrait
Table of Contents
- $cloning : bool
- Used for recursive cloning protection when cloning tags with child tags.
- $value : int
- __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() : mixed
- 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
- max() : int
- min() : int
- restrictArgCount() : void
- stringifyValue() : string
Properties
$cloning
Used for recursive cloning protection when cloning tags with child tags.
protected
bool
$cloning
= false
$value
private
int
$value
Methods
__construct()
public
__construct(int $value) : mixed
Parameters
- $value : int
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
abstract getValue() : mixed
Return values
mixed —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 —max()
protected
max() : int
Return values
int —min()
protected
min() : int
Return values
int —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