Interface IBuilderElevatorAction
-
- All Superinterfaces:
IElevatorAction
public interface IBuilderElevatorAction extends IElevatorAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecute(@NotNull IElevatorEventData eventData, @NotNull org.bukkit.entity.Player player)Executes the action for the given event/player.booleanmeetsConditions(@NotNull IElevatorEventData eventData, @NotNull org.bukkit.entity.Player player)Returns whether this action should execute for the given event/player.voidonInitialize(java.lang.String value)-
Methods inherited from interface me.keehl.elevators.api.models.IElevatorAction
getElevatorType, getIcon, getIdentifier, getKey, getSettings, getVariableValue, getVariableValue, initialize, initIdentifier, onStartEditing, onStopEditing, serialize, setGroupingObject, setIcon
-
-
-
-
Method Detail
-
onInitialize
void onInitialize(java.lang.String value)
-
execute
void execute(@NotNull @NotNull IElevatorEventData eventData, @NotNull @NotNull org.bukkit.entity.Player player)Description copied from interface:IElevatorActionExecutes the action for the given event/player.Implementations should assume
IElevatorAction.meetsConditions(IElevatorEventData, Player)has already been checked unless documented otherwise.- Specified by:
executein interfaceIElevatorAction- Parameters:
eventData- non-null event contextplayer- non-null player involved in the event
-
meetsConditions
boolean meetsConditions(@NotNull @NotNull IElevatorEventData eventData, @NotNull @NotNull org.bukkit.entity.Player player)Description copied from interface:IElevatorActionReturns whether this action should execute for the given event/player.This is a pure predicate; it should not have side effects.
- Specified by:
meetsConditionsin interfaceIElevatorAction- Parameters:
eventData- non-null event contextplayer- non-null player involved in the event- Returns:
- true if the action should execute; otherwise false
-
-