Class ExprSkriptPotionEffect
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<SkriptPotionEffect>
ch.njol.skript.expressions.base.EventValueExpression<SkriptPotionEffect>
org.skriptlang.skript.bukkit.potion.elements.expressions.ExprSkriptPotionEffect
- All Implemented Interfaces:
Debuggable,DefaultExpression<SkriptPotionEffect>,EventRestrictedSyntax,Expression<SkriptPotionEffect>,Loopable<SkriptPotionEffect>,Simplifiable<Expression<? extends SkriptPotionEffect>>,SyntaxElement,RuntimeErrorProducer,SyntaxRuntimeErrorProducer
@Name("Created Potion Effect")
@Description("An expression to obtain the potion effect being made in a potion effect creation section.")
@Example("set {_potion} to a potion effect of speed 2 for 10 minutes:\n\thide the effect\'s icon\n\thide the effect\'s particles\n")
@Since("2.14")
public class ExprSkriptPotionEffect
extends ch.njol.skript.expressions.base.EventValueExpression<SkriptPotionEffect>
implements EventRestrictedSyntax
-
Field Summary
Fields inherited from class ch.njol.skript.expressions.base.EventValueExpression
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(SyntaxRegistry registry, Origin origin) Class<? extends org.bukkit.event.Event>[]Returns all supported events for this syntax element.toString(@Nullable org.bukkit.event.Event event, boolean debug) Methods inherited from class ch.njol.skript.expressions.base.EventValueExpression
acceptChange, change, get, getReturnType, infoBuilder, init, init, isDefault, isSingle, register, register, setTimeMethods inherited from class ch.njol.skript.lang.util.SimpleExpression
check, check, check, getAll, getAnd, getArray, getConvertedExpr, getConvertedExpression, getNode, getSingle, getSource, getTime, isLoopOf, iterator, preInit, setTime, setTime, setTime, setTime, simplify, supportsLoopPeeking, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.njol.skript.lang.Debuggable
toStringMethods inherited from interface ch.njol.skript.lang.Expression
beforeChange, canBeSingle, canReturn, changeInPlace, changeInPlace, check, check, getAcceptedChangeModes, getAll, getAnd, getArray, getConvertedExpression, getOptionalSingle, getSingle, getSource, getSyntaxTypeName, getTime, possibleReturnTypes, returnNestedStructures, returnsNestedStructures, simplify, stream, streamAllMethods inherited from interface ch.njol.skript.lang.Loopable
isLoopOf, iterator, supportsLoopPeekingMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser, preInitMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprSkriptPotionEffect
public ExprSkriptPotionEffect()
-
-
Method Details
-
register
-
supportedEvents
Description copied from interface:EventRestrictedSyntaxReturns all supported events for this syntax element.Before
SyntaxElement.init(Expression[], int, Kleenean, SkriptParser.ParseResult)is called, checks to see if the current event is supported by this syntax element. If it is not, an error will be printed and the syntax element will not be initialised.- Specified by:
supportedEventsin interfaceEventRestrictedSyntax- Returns:
- All supported event classes.
- See Also:
-
toString
- Specified by:
toStringin interfaceDebuggable- Overrides:
toStringin classch.njol.skript.expressions.base.EventValueExpression<SkriptPotionEffect>- Parameters:
event- The event to get information from. This is always null if debug == false.debug- If true this should print more information, if false this should print what is shown to the end user- Returns:
- String representation of this object
-