|
Phpcraft
|


Public Member Functions | |
| __construct ($eids=[], int $x=null, int $y=null, int $z=null) | |
| send (Connection $con) | |
| __toString () | |
Public Member Functions inherited from Phpcraft\Packet\EntityPacket | |
| __construct ($eids=[]) | |
| replaceEntity (GMP $old_eid, GMP $new_eid) | |
Static Public Member Functions | |
| static | read (Connection $con) |
Public Attributes | |
| $x | |
| $y | |
| $z | |
Public Attributes inherited from Phpcraft\Packet\EntityPacket | |
| $eids | |
| Phpcraft\Packet\EntityVelocityPacket::__construct | ( | $eids = [], |
|
| int | $x = null, |
||
| int | $y = null, |
||
| int | $z = null |
||
| ) |
EntityVelocityPacket constructor.
| array<GMP>|GMP|int|string | $eids A single entity ID or an array of entity IDs. | |
| int | $x | |
| int | $y | |
| int | $z |
| Phpcraft\Packet\EntityVelocityPacket::__toString | ( | ) |
Reimplemented from Phpcraft\Packet\Packet.
|
static |
Initialises the packet class by reading its payload from the given Connection.
| Connection | $con |
| IOException |
Reimplemented from Phpcraft\Packet\Packet.
| Phpcraft\Packet\EntityVelocityPacket::send | ( | Connection | $con | ) |
Adds the packet's ID and payload to the Connection's write buffer and sends it over the wire if the connection has a stream. Note that in some cases this will produce multiple Minecraft packets, therefore you should only use this on connections without a stream if you know what you're doing.
| Connection | $con |
| IOException |
Reimplemented from Phpcraft\Packet\Packet.
| int Phpcraft\Packet\EntityVelocityPacket::$x |
| int Phpcraft\Packet\EntityVelocityPacket::$y |
| int Phpcraft\Packet\EntityVelocityPacket::$z |
1.8.17