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 };
}
Aggregations