Class InventoryButtonClickEvent
java.lang.Object
net.minestom.server.event.inventory.InventoryButtonClickEvent
- All Implemented Interfaces:
Event, EntityEvent, EntityInstanceEvent, InstanceEvent, InventoryEvent, PlayerEvent, PlayerInstanceEvent
public class InventoryButtonClickEvent
extends Object
implements InventoryEvent, PlayerInstanceEvent
Represents an event triggered when a player interacts with a button in an
See the minecraft protocol wiki for a list of all button ids.
AbstractInventory, such
as the entries in a stonecutter, the buttons in an enchanting table, etc.
See the minecraft protocol wiki for a list of all button ids.
-
Constructor Summary
ConstructorsConstructorDescriptionInventoryButtonClickEvent(Player player, AbstractInventory inventory, int buttonId) -
Method Summary
Modifier and TypeMethodDescriptionintGets the inventory that was clicked.Gets the player.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityInstanceEvent
getInstanceMethods inherited from interface PlayerEvent
getEntity
-
Constructor Details
-
InventoryButtonClickEvent
-
-
Method Details
-
getInventory
Description copied from interface:InventoryEventGets the inventory that was clicked.- Specified by:
getInventoryin interfaceInventoryEvent
-
getPlayer
Description copied from interface:PlayerEventGets the player.- Specified by:
getPlayerin interfacePlayerEvent- Returns:
- the player
-
getButtonId
public int getButtonId()
-