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
$amount
private
int
$amount
$byteSize
private
int
$byteSize
= 0
$chestSlot
private
int
$chestSlot
$coords
private
Coords
$coords
$itemId
private
int
$itemId
$key
private
int
$key
$spawnTime
private
int
$spawnTime
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
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
intgetByteSize()
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
intgetCoords()
public
getCoords() : Coords
Return values
CoordsgetItemId()
public
getItemId() : int
Return values
intgetKey()
public
getKey() : int
Return values
intgetSpawnTime()
public
getSpawnTime() : int
Return values
intserialize()
Serializes an instance of `MapItem` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, MapItem $data) : void
Parameters
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
setCoords()
public
setCoords(Coords $coords) : void
Parameters
- $coords : Coords
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