Phpcraft
Public Member Functions | Public Attributes | List of all members
Phpcraft\NBT\LongArrayTag Class Reference
Inheritance diagram for Phpcraft\NBT\LongArrayTag:
Inheritance graph
[legend]
Collaboration diagram for Phpcraft\NBT\LongArrayTag:
Collaboration graph
[legend]

Public Member Functions

 __construct (string $name, array $children=[])
 
 write (Connection $con, bool $inList=false)
 
 __toString ()
 
 copy ()
 
 toSNBT (bool $fancy=false, bool $inList=false)
 
- Public Member Functions inherited from Phpcraft\NBT\AbstractListTag
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 count ()
 

Public Attributes

const ORD = 12
 
- Public Attributes inherited from Phpcraft\NBT\AbstractListTag
 $children
 
- Public Attributes inherited from Phpcraft\NBT\NBT
const ORD = null
 
 $name
 

Additional Inherited Members

- Static Public Member Functions inherited from Phpcraft\NBT\NBT
static fromString (string $nbt)
 
static fromSNBT (string $snbt, bool $inList=false)
 
static stringFromSNBT (string $snbt)
 
static isValidBareString (string $string)
 
static stringToSNBT (string $string)
 
- Protected Member Functions inherited from Phpcraft\NBT\AbstractListTag
 gmpListToSNBT (bool $fancy, bool $inList, string $type_char)
 
- Protected Member Functions inherited from Phpcraft\NBT\NBT
 _write (Connection $con)
 
- Static Protected Member Functions inherited from Phpcraft\NBT\NBT
static parseSNBTArray (string $snbt, bool $list)
 
static indentString (string $string)
 

Constructor & Destructor Documentation

◆ __construct()

Phpcraft\NBT\LongArrayTag::__construct ( string  $name,
array  $children = [] 
)
Parameters
string$nameThe name of this tag.
array<GMP>$children The longs in the array.

Member Function Documentation

◆ __toString()

Phpcraft\NBT\LongArrayTag::__toString ( )

Reimplemented from Phpcraft\NBT\NBT.

◆ copy()

Phpcraft\NBT\LongArrayTag::copy ( )
Returns
static

Reimplemented from Phpcraft\NBT\NBT.

◆ toSNBT()

Phpcraft\NBT\LongArrayTag::toSNBT ( bool  $fancy = false,
bool  $inList = false 
)

Returns the NBT tag in SNBT (stringified NBT) format, as used in commands.

Parameters
bool$fancy
boolean$inListIgnore this parameter.
Returns
string

Reimplemented from Phpcraft\NBT\NBT.

◆ write()

Phpcraft\NBT\LongArrayTag::write ( Connection  $con,
bool  $inList = false 
)

Adds the NBT tag to the write buffer of the connection.

Parameters
Connection$con
boolean$inListIgnore this parameter.
Returns
Connection $con

Reimplemented from Phpcraft\NBT\NBT.

Member Data Documentation

◆ ORD

const Phpcraft\NBT\LongArrayTag::ORD = 12