Package ch.njol.skript.lang
Class ReturnHandler.ReturnHandlerStack
java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
ch.njol.skript.lang.ReturnHandler.ReturnHandlerStack
- Enclosing interface:
ReturnHandler<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable ReturnHandler
<?> Retrieves the currentReturnHandler
Deque
<ReturnHandler<?>> getStack()
pop()
Pops the current handler off the return stack.void
push
(ReturnHandler<?> handler) Pushes the current return handler onto the return stack.Methods inherited from class ch.njol.skript.lang.parser.ParserInstance.Data
getParser, onCurrentEventsChange, onCurrentScriptChange
-
Constructor Details
-
ReturnHandlerStack
-
-
Method Details
-
getStack
-
getCurrentHandler
Retrieves the currentReturnHandler
- Returns:
- the return data
-
push
Pushes the current return handler onto the return stack.
Note: After the trigger finished loading,pop()
MUST be called- Parameters:
handler
- the return handler- See Also:
-
pop
Pops the current handler off the return stack. Should be called after the trigger has finished loading.- Returns:
- the popped return data
- See Also:
-