public class ClientGuiButtonClickEvent extends ClientGuiMouseClickEvent
eventBtn, eventState, x, y| Constructor and Description |
|---|
ClientGuiButtonClickEvent(int eventButton,
boolean btnState,
int btnId,
String GuiName,
BridgePlayer player,
int x,
int y,
boolean mac) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBtnId()
Returns the id of the GuiButton clicked.
|
getButtonState, getEventButtongetEventType, getGuiName, getHandlerList, getHandlers, getPlayer, isCancelled, setCancelledpublic ClientGuiButtonClickEvent(int eventButton,
boolean btnState,
int btnId,
String GuiName,
BridgePlayer player,
int x,
int y,
boolean mac)
eventButton - (the mouse button that caused the event)btnState - (the state of the mouse button)btnId - (the id of the clicked GuiButton)GuiName - (the name of the GUI that the event occured in)player - (the BridgePlayer that caused the event)x - (the x coord of the mouse)y - (the y coord of the mouse)mac - (whether the client is using a mac)public int getBtnId()
btnId