Search in sources :

Example 6 with LevelEventPacket

use of cn.nukkit.network.protocol.LevelEventPacket in project Nukkit by Nukkit.

the class SpellParticle method encode.

@Override
public DataPacket[] encode() {
    LevelEventPacket pk = new LevelEventPacket();
    pk.evid = LevelEventPacket.EVENT_PARTICLE_SPLASH;
    pk.x = (float) this.x;
    pk.y = (float) this.y;
    pk.z = (float) this.z;
    pk.data = this.data;
    return new DataPacket[] { pk };
}
Also used : LevelEventPacket(cn.nukkit.network.protocol.LevelEventPacket) DataPacket(cn.nukkit.network.protocol.DataPacket)

Aggregations

DataPacket (cn.nukkit.network.protocol.DataPacket)6 LevelEventPacket (cn.nukkit.network.protocol.LevelEventPacket)6