Package net.md_5.bungee.api.event
Class PluginMessageEvent
- java.lang.Object
- 
- net.md_5.bungee.api.plugin.Event
- 
- net.md_5.bungee.api.event.TargetedEvent
- 
- net.md_5.bungee.api.event.PluginMessageEvent
 
 
 
- 
- All Implemented Interfaces:
- Cancellable
 
 public class PluginMessageEvent extends TargetedEvent implements Cancellable Event called when a plugin message is sent to the client or server.
- 
- 
Constructor SummaryConstructors Constructor Description PluginMessageEvent(Connection sender, Connection receiver, String tag, byte[] data)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)byte[]getData()Data contained in this plugin message.StringgetTag()Tag specified for this plugin message.inthashCode()booleanisCancelled()Cancelled state.voidsetCancelled(boolean cancelled)Cancelled state.StringtoString()- 
Methods inherited from class net.md_5.bungee.api.event.TargetedEventgetReceiver, getSender
 
- 
 
- 
- 
- 
Constructor Detail- 
PluginMessageEventpublic PluginMessageEvent(Connection sender, Connection receiver, String tag, byte[] data) 
 
- 
 - 
Method Detail- 
isCancelledpublic boolean isCancelled() Cancelled state.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
getTagpublic String getTag() Tag specified for this plugin message.
 - 
getDatapublic byte[] getData() Data contained in this plugin message.
 - 
setCancelledpublic void setCancelled(boolean cancelled) Cancelled state.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancelled- the state to set
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- TargetedEvent
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- TargetedEvent
 
 - 
canEqualprotected boolean canEqual(Object other) - Overrides:
- canEqualin class- TargetedEvent
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- TargetedEvent
 
 
- 
 
-