Interface SoundPacketEvent<T extends Packet>
- All Superinterfaces:
Event
,PacketEvent<T>
,ServerEvent
- All Known Subinterfaces:
EntitySoundPacketEvent
,LocationalSoundPacketEvent
,StaticSoundPacketEvent
-
Field Summary
-
Method Summary
Methods inherited from interface de.maxhenkel.voicechat.api.events.Event
cancel, isCancellable, isCancelled
Methods inherited from interface de.maxhenkel.voicechat.api.events.PacketEvent
getPacket, getReceiverConnection, getSenderConnection
Methods inherited from interface de.maxhenkel.voicechat.api.events.ServerEvent
getVoicechat
-
Field Details
-
SOURCE_GROUP
- See Also:
-
SOURCE_PROXIMITY
- See Also:
-
SOURCE_SPECTATOR
- See Also:
-
SOURCE_PLUGIN
- See Also:
-
-
Method Details
-
getSource
String getSource()Where the packet originated from. It can be either "group"<T extends Packet> for group chats, "proximity"<T extends Packet> for proximity sound, "spectator"<T extends Packet> for spectator sound or "plugin"<T extends Packet> if the packet was sent from a plugin.- Returns:
- the source of the packet
-