Package org.bukkit.event.inventory
Class InventoryOpenEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryOpenEvent
- All Implemented Interfaces:
- Cancellable
Represents a player related inventory event
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.inventory.InventoryEventtransaction
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic @NotNull HandlerListfinal @NotNull HumanEntityReturns the player involved in this eventbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.inventory.InventoryEventgetInventory, getView, getViewersMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
InventoryOpenEvent
 
- 
- 
Method Details- 
getPlayerReturns the player involved in this event- Returns:
- Player who is involved in this event
 
- 
isCancelledpublic boolean isCancelled()Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.If an inventory open event is cancelled, the inventory screen will not show. - Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.If an inventory open event is cancelled, the inventory screen will not show. - Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
- 
getHandlers- Overrides:
- getHandlersin class- InventoryEvent
 
- 
getHandlerList
 
-