style: fix formatting

This commit is contained in:
Sculas
2024-03-20 19:01:59 +01:00
parent f48c48e6e5
commit 342404f586
3 changed files with 470 additions and 468 deletions
@@ -25,31 +25,31 @@ import java.io.IOException;
public class PacketPlayOutGameEvent extends PacketOut {
private byte event;
private float value;
private byte event;
private float value;
public PacketPlayOutGameEvent(byte event, float value) {
this.event = event;
this.value = value;
}
public PacketPlayOutGameEvent(byte event, float value) {
this.event = event;
this.value = value;
}
public int getEvent() {
return event;
}
public float getValue() {
return value;
}
public byte[] serializePacket() throws IOException {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
DataOutputStream output = new DataOutputStream(buffer);
output.writeByte(Packet.getPlayOut().get(getClass()));
output.writeByte(Byte.toUnsignedInt(event));
output.writeFloat(value);
public int getEvent() {
return event;
}
return buffer.toByteArray();
}
public float getValue() {
return value;
}
public byte[] serializePacket() throws IOException {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
DataOutputStream output = new DataOutputStream(buffer);
output.writeByte(Packet.getPlayOut().get(getClass()));
output.writeByte(Byte.toUnsignedInt(event));
output.writeFloat(value);
return buffer.toByteArray();
}
}