/* * Decompiled with CFR 0.152. */ package de.maxhenkel.voicechat.voice.common; import de.maxhenkel.voicechat.util.FriendlyByteBuf; import de.maxhenkel.voicechat.voice.common.Packet; import java.util.UUID; public class PingPacket implements Packet { private UUID id; private long timestamp; public PingPacket(UUID id, long timestamp) { this.id = id; this.timestamp = timestamp; } public PingPacket() { } public long getTimestamp() { return this.timestamp; } public UUID getId() { return this.id; } @Override public PingPacket fromBytes(FriendlyByteBuf buf) { PingPacket soundPacket = new PingPacket(); soundPacket.id = buf.readUUID(); soundPacket.timestamp = buf.readLong(); return soundPacket; } @Override public void toBytes(FriendlyByteBuf buf) { buf.writeUUID(this.id); buf.writeLong(this.timestamp); } }