Phpcraft
|
Public Member Functions | |
__construct ($eids=[]) | |
replaceEntity (GMP $old_eid, GMP $new_eid) | |
Public Member Functions inherited from Phpcraft\Packet\Packet | |
send (Connection $con) | |
__toString () | |
Public Attributes | |
$eids | |
Additional Inherited Members | |
Static Public Member Functions inherited from Phpcraft\Packet\Packet | |
static | read (Connection $con) |
A clientbound packet affecting one or more entities.
Phpcraft\Packet\EntityPacket::__construct | ( | $eids = [] | ) |
array<GMP>|GMP|int|string | $eids A single entity ID or an array of entity IDs. |
Phpcraft\Packet\EntityPacket::replaceEntity | ( | GMP | $old_eid, |
GMP | $new_eid | ||
) |
Replaces an entity ID in the packet, e.g. for a proxy where the downstream and upstream entity IDs for the player differ.
GMP | $old_eid | |
GMP | $new_eid |
array< GMP > Phpcraft\Packet\EntityPacket::$eids |
The entities' IDs. When using Packet::read(), this will only ever have one entity ID, except for DestroyEntityPacket.