Search in sources :

Example 1 with ParticleF

use of com.bewitchment.client.fx.ParticleF in project Bewitchment by Um-Mitternacht.

the class ParticleMessage method fromBytes.

@Override
public void fromBytes(ByteBuf byteBuf) {
    PacketBuffer buf = new PacketBuffer(byteBuf);
    particleF = buf.readEnumValue(ParticleF.class);
    x = buf.readDouble();
    y = buf.readDouble();
    z = buf.readDouble();
    amount = buf.readInt();
    xSpeed = buf.readDouble();
    ySpeed = buf.readDouble();
    zSpeed = buf.readDouble();
    int argCount = buf.readInt();
    args = new int[argCount];
    for (int i = 0; i < argCount; i++) {
        args[i] = buf.readInt();
    }
}
Also used : ParticleF(com.bewitchment.client.fx.ParticleF) PacketBuffer(net.minecraft.network.PacketBuffer)

Aggregations

ParticleF (com.bewitchment.client.fx.ParticleF)1 PacketBuffer (net.minecraft.network.PacketBuffer)1