Interface PacketEvent<T extends Packet>

All Superinterfaces:
Event, ServerEvent
All Known Subinterfaces:
EntitySoundPacketEvent, LocationalSoundPacketEvent, MicrophonePacketEvent, SoundPacketEvent<T>, StaticSoundPacketEvent

public interface PacketEvent<T extends Packet> extends ServerEvent
  • Method Details

    • getPacket

      T getPacket()
      the packet
    • getReceiverConnection

      @Nullable VoicechatConnection getReceiverConnection()
      the connection of the player that should receive this packet
    • getSenderConnection

      @Nullable VoicechatConnection getSenderConnection()
      the connection of the player that sent this packet or null if it wasn't sent by a player