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