/* * Decompiled with CFR 0.152. * * Could not load the following classes: * org.bukkit.entity.Player */ package de.maxhenkel.voicechat.net; import de.maxhenkel.voicechat.Voicechat; import de.maxhenkel.voicechat.net.Packet; import de.maxhenkel.voicechat.util.FriendlyByteBuf; import de.maxhenkel.voicechat.util.Key; import org.bukkit.entity.Player; public class RequestSecretPacket implements Packet { public static final Key REQUEST_SECRET = Voicechat.compatibility.createNamespacedKey("request_secret"); private int compatibilityVersion; public RequestSecretPacket() { } public RequestSecretPacket(int compatibilityVersion) { this.compatibilityVersion = compatibilityVersion; } public int getCompatibilityVersion() { return this.compatibilityVersion; } @Override public Key getID() { return REQUEST_SECRET; } @Override public void onPacket(Player player) { Voicechat.SERVER.onRequestSecretPacket(player, this); } @Override public RequestSecretPacket fromBytes(FriendlyByteBuf buf) { this.compatibilityVersion = buf.readInt(); return this; } @Override public void toBytes(FriendlyByteBuf buf) { buf.writeInt(this.compatibilityVersion); } }