Class ExprNextAvailableGraveSlot
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<Number>
dev.cwhead.GravesX.event.integration.skript.expressions.ExprNextAvailableGraveSlot
- All Implemented Interfaces:
ch.njol.skript.lang.Debuggable, ch.njol.skript.lang.Expression<Number>, ch.njol.skript.lang.Loopable<Number>, ch.njol.skript.lang.simplification.Simplifiable<ch.njol.skript.lang.Expression<? extends Number>>, ch.njol.skript.lang.SyntaxElement, org.skriptlang.skript.log.runtime.RuntimeErrorProducer, org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
@Name("GravesX Next Available Grave Slot")
@Description("Gets the next empty slot in a grave inventory through the GravesX grave management API. Returns -1 when no slot is available.")
@Examples({"set {_slot} to next available grave slot of {_grave}","if {_slot} >= 0:","\tadd player's tool to slot {_slot} of grave {_grave}"})
public class ExprNextAvailableGraveSlot
extends ch.njol.skript.lang.util.SimpleExpression<Number>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Number[]get(org.bukkit.event.Event event) booleaninit(ch.njol.skript.lang.Expression<?>[] expressions, int matchedPattern, ch.njol.util.Kleenean isDelayed, ch.njol.skript.lang.SkriptParser.ParseResult parseResult) booleanisSingle()toString(@Nullable org.bukkit.event.Event event, boolean debug) Methods inherited from class ch.njol.skript.lang.util.SimpleExpression
acceptChange, change, check, check, check, getAll, getAnd, getArray, getConvertedExpr, getConvertedExpression, getNode, getSingle, getSource, getTime, isDefault, isLoopOf, iterator, preInit, setTime, setTime, setTime, setTime, setTime, simplify, supportsLoopPeeking, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.njol.skript.lang.Expression
beforeChange, canBeSingle, canReturn, canReturnAnyOf, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, possibleReturnTypes, returnNestedStructures, returnsNestedStructures, stream, streamAllMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParserMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprNextAvailableGraveSlot
public ExprNextAvailableGraveSlot()
-
-
Method Details
-
init
public boolean init(ch.njol.skript.lang.Expression<?>[] expressions, int matchedPattern, ch.njol.util.Kleenean isDelayed, ch.njol.skript.lang.SkriptParser.ParseResult parseResult) -
get
-
isSingle
public boolean isSingle() -
getReturnType
-
toString
-