/* * Decompiled with CFR 0.152. * * Could not load the following classes: * javax.annotation.Nullable */ package de.maxhenkel.voicechat.plugins.impl.events; import de.maxhenkel.voicechat.api.VoicechatConnection; import de.maxhenkel.voicechat.api.events.PacketEvent; import de.maxhenkel.voicechat.api.packets.Packet; import de.maxhenkel.voicechat.plugins.impl.events.ServerEventImpl; import javax.annotation.Nullable; public class PacketEventImpl extends ServerEventImpl implements PacketEvent { private final T packet; @Nullable private final VoicechatConnection receiverConnection; @Nullable private final VoicechatConnection senderConnection; public PacketEventImpl(T packet, @Nullable VoicechatConnection senderConnection, @Nullable VoicechatConnection receiverConnection) { this.packet = packet; this.senderConnection = senderConnection; this.receiverConnection = receiverConnection; } @Override public T getPacket() { return this.packet; } @Override @Nullable public VoicechatConnection getReceiverConnection() { return this.receiverConnection; } @Override @Nullable public VoicechatConnection getSenderConnection() { return this.senderConnection; } }