Class JerryCanMenuOpen
java.lang.Object
org.bukkit.event.Event
nl.mtvehicles.core.infrastructure.models.MTVEvent
nl.mtvehicles.core.events.inventory.JerryCanMenuOpen
- All Implemented Interfaces:
HasInventory
,IsCancellable
On /vehicle fuel open
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJerryCanMenuOpen(org.bukkit.entity.Player player)
Default constructor with a player (callsMTVEvent.setPlayer(Player)
). -
Method Summary
Modifier and TypeMethodDescriptiongetTitle()
Get the title of the inventory player has clicked invoid
setCancelled(boolean cancelled)
Sets the cancellation state of this event.Methods inherited from class nl.mtvehicles.core.infrastructure.models.MTVEvent
call, getHandlerList, getHandlers, getPlayer, isCancelled, setPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
JerryCanMenuOpen
public JerryCanMenuOpen(org.bukkit.entity.Player player)Default constructor with a player (callsMTVEvent.setPlayer(Player)
).- Parameters:
player
- Player
-
-
Method Details
-
setCancelled
public void setCancelled(boolean cancelled)Description copied from interface:IsCancellable
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceIsCancellable
- Parameters:
cancelled
- true if you wish to cancel this event
-
getTitle
Description copied from interface:HasInventory
Get the title of the inventory player has clicked in- Specified by:
getTitle
in interfaceHasInventory
- Returns:
- Inventory title
- See Also:
InventoryTitle.getStringTitle()
-