Class MTVEvent
java.lang.Object
org.bukkit.event.Event
nl.mtvehicles.core.infrastructure.models.MTVEvent
- Direct Known Subclasses:
ChatEvent
,HornUseEvent
,InventoryClickEvent
,InventoryCloseEvent
,JerryCanClickEvent
,JerryCanMenuOpen
,RestoreMenuOpenEvent
,TankShootEvent
,VehicleAddMemberEvent
,VehicleAddRiderEvent
,VehicleDamageEvent
,VehicleEnterEvent
,VehicleFuelEvent
,VehicleLeaveEvent
,VehicleMenuOpenEvent
,VehicleOpenTrunkEvent
,VehiclePickUpEvent
,VehiclePlaceEvent
,VehicleRegionEnterEvent
,VehicleRegionLeaveEvent
,VehicleRemoveMemberEvent
,VehicleRemoveRiderEvent
,VehicleVoucherEvent
public abstract class MTVEvent
extends org.bukkit.event.Event
Abstract class for the plugin's API events
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
call()
Call this event (to other plugins)static @NotNull org.bukkit.event.HandlerList
Method required in every event@NotNull org.bukkit.event.HandlerList
@Nullable org.bukkit.entity.Player
Get event-playerboolean
Check whether the event is cancelled.void
setPlayer(org.bukkit.entity.Player player)
Set event-playerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Field Details
-
cancelled
protected boolean cancelledWhether the event is cancelled- See Also:
isCancelled()
-
-
Constructor Details
-
MTVEvent
public MTVEvent()
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()Method required in every event -
call
public void call()Call this event (to other plugins) -
isCancelled
public boolean isCancelled()Check whether the event is cancelled. If the event isn't cancellable, always returns false- See Also:
Cancellable
-
getPlayer
@Nullable public @Nullable org.bukkit.entity.Player getPlayer()Get event-player- Returns:
- Event-player or "null" if player is not specified
-
setPlayer
public void setPlayer(org.bukkit.entity.Player player)Set event-player- Parameters:
player
- Set event-player (use "null" if player is not specified)
-