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()
      Returns:
      the packet
    • getReceiverConnection

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

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