Interface PacketEvent<T extends Packet>
- All Superinterfaces:
Event,ServerEvent
- All Known Subinterfaces:
EntitySoundPacketEvent,LocationalSoundPacketEvent,MicrophonePacketEvent,SoundPacketEvent<T>,StaticSoundPacketEvent
-
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from interface de.maxhenkel.voicechat.api.events.Event
cancel, isCancellable, isCancelledMethods inherited from interface de.maxhenkel.voicechat.api.events.ServerEvent
getVoicechat
-
Method Details
-
getPacket
T getPacket()- Returns:
- the packet
-
getReceiverConnection
- Returns:
- the connection of the player that should receive this packet
-
getSenderConnection
- Returns:
- the connection of the player that sent this packet or
nullif it wasn't sent by a player
-