Documentation

MapItem
in package

Table of Contents

Properties

$amount  : int
$byteSize  : int
$chestSlot  : int
$coords  : Coords
$itemId  : int
$key  : int
$spawnTime  : int

Methods

__toString()  : string
Returns a string representation of the object.
deserialize()  : MapItem
Deserializes an instance of `MapItem` from the provided `EoReader`.
getAmount()  : int
getByteSize()  : int
Returns the size of the data that this was deserialized from.
getChestSlot()  : int
getCoords()  : Coords
getItemId()  : int
getKey()  : int
getSpawnTime()  : int
serialize()  : void
Serializes an instance of `MapItem` to the provided `EoWriter`.
setAmount()  : void
setByteSize()  : void
Sets the size of the data that this was deserialized from.
setChestSlot()  : void
setCoords()  : void
setItemId()  : void
setKey()  : void
setSpawnTime()  : void

Properties

Methods

__toString()

Returns a string representation of the object.

public __toString() : string
Return values
string

deserialize()

Deserializes an instance of `MapItem` from the provided `EoReader`.

public static deserialize(EoReader $reader) : MapItem
Parameters
$reader : EoReader

The reader that the data will be deserialized from.

Return values
MapItem

The deserialized data.

getAmount()

public getAmount() : int
Return values
int

getByteSize()

Returns the size of the data that this was deserialized from.

public getByteSize() : int
Return values
int

The size of the data that this was deserialized from.

getChestSlot()

public getChestSlot() : int
Return values
int

getItemId()

public getItemId() : int
Return values
int

getKey()

public getKey() : int
Return values
int

getSpawnTime()

public getSpawnTime() : int
Return values
int

serialize()

Serializes an instance of `MapItem` to the provided `EoWriter`.

public static serialize(EoWriter $writer, MapItem $data) : void
Parameters
$writer : EoWriter

The writer that the data will be serialized to.

$data : MapItem

The data to serialize.

setAmount()

public setAmount(int $amount) : void
Parameters
$amount : int

setByteSize()

Sets the size of the data that this was deserialized from.

public setByteSize(int $byteSize) : void
Parameters
$byteSize : int

The size of the data that this was deserialized from.

setChestSlot()

public setChestSlot(int $chestSlot) : void
Parameters
$chestSlot : int

setItemId()

public setItemId(int $itemId) : void
Parameters
$itemId : int

setKey()

public setKey(int $key) : void
Parameters
$key : int

setSpawnTime()

public setSpawnTime(int $spawnTime) : void
Parameters
$spawnTime : int

        
On this page

Search results