Interface SoundPacketEvent<T extends Packet>
- All Superinterfaces:
Event, PacketEvent<T>, ServerEvent
- All Known Subinterfaces:
EntitySoundPacketEvent, LocationalSoundPacketEvent, StaticSoundPacketEvent
-
Field Summary
Fields -
Method Summary
Methods inherited from interface Event
cancel, isCancellable, isCancelledMethods inherited from interface PacketEvent
getPacket, getReceiverConnection, getSenderConnectionMethods inherited from interface 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
-