Package net.md_5.bungee.api.event
Class CustomClickEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.CustomClickEvent
- All Implemented Interfaces:
Cancellable
Called after a
ProxiedPlayer runs a custom action from a chat event
or form submission.-
Constructor Summary
ConstructorsConstructorDescriptionCustomClickEvent(ProxiedPlayer player, String id, com.google.gson.JsonElement data) Creates a newCustomClickEventinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.google.gson.JsonElementgetData()The data as submitted.getId()Custom action ID.Player who clicked.inthashCode()booleanCancelled state.voidsetCancelled(boolean cancelled) Cancelled state.toString()
-
Constructor Details
-
CustomClickEvent
Creates a newCustomClickEventinstance.- Parameters:
player- Player who clicked.id- Custom action ID.data- The data as submitted.
-
-
Method Details
-
getPlayer
Player who clicked. -
getId
Custom action ID. -
getData
public com.google.gson.JsonElement getData()The data as submitted. -
isCancelled
public boolean isCancelled()Cancelled state.- Specified by:
isCancelledin interfaceCancellable- Returns:
- the cancelled state of this event
-
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancelled- the state to set
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-