Class VehicleMenuOpenEvent

java.lang.Object
org.bukkit.event.Event
nl.mtvehicles.core.infrastructure.models.MTVEvent
nl.mtvehicles.core.events.inventory.VehicleMenuOpenEvent
All Implemented Interfaces:
HasInventory, IsCancellable

public class VehicleMenuOpenEvent extends MTVEvent implements IsCancellable, HasInventory
On /vehicle menu open
  • Constructor Details

    • VehicleMenuOpenEvent

      public VehicleMenuOpenEvent(org.bukkit.entity.Player player)
      Default constructor with a player (calls MTVEvent.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 interface IsCancellable
      Parameters:
      cancelled - true if you wish to cancel this event
    • getTitle

      public InventoryTitle getTitle()
      Description copied from interface: HasInventory
      Get the title of the inventory player has clicked in
      Specified by:
      getTitle in interface HasInventory
      Returns:
      Inventory title
      See Also:
      InventoryTitle.getStringTitle()