Class ExprCreatedDamageSource
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<org.bukkit.damage.DamageSource>
ch.njol.skript.expressions.base.EventValueExpression<org.bukkit.damage.DamageSource>
org.skriptlang.skript.bukkit.damagesource.elements.ExprCreatedDamageSource
- All Implemented Interfaces:
Debuggable
,DefaultExpression<org.bukkit.damage.DamageSource>
,EventRestrictedSyntax
,Expression<org.bukkit.damage.DamageSource>
,Loopable<org.bukkit.damage.DamageSource>
,Simplifiable<Expression<? extends org.bukkit.damage.DamageSource>>
,SyntaxElement
,RuntimeErrorProducer
,SyntaxRuntimeErrorProducer
@Name("Created Damage Source")
@Description("Get the created damage source being created/modified in a \'custom damage source\' section.")
@Example("set {_source} to a custom damage source:\n\tset the damage type of the created damage source to magic\n")
@Since("2.12")
@RequiredPlugins("Minecraft 1.20.4+")
public class ExprCreatedDamageSource
extends ch.njol.skript.expressions.base.EventValueExpression<org.bukkit.damage.DamageSource>
implements EventRestrictedSyntax
-
Field Summary
Fields inherited from class ch.njol.skript.expressions.base.EventValueExpression
DEFAULT_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.bukkit.event.Event>[]
Returns all supported events for this syntax element.Methods inherited from class ch.njol.skript.expressions.base.EventValueExpression
acceptChange, change, get, getReturnType, init, init, isDefault, isSingle, register, register, register, register, setTime, toString
Methods 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.njol.skript.lang.Debuggable
toString
Methods 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, stream, streamAll
Methods inherited from interface ch.njol.skript.lang.Loopable
isLoopOf, iterator, supportsLoopPeeking
Methods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warning
Methods inherited from interface ch.njol.skript.lang.simplification.Simplifiable
simplify
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser, preInit
Methods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprCreatedDamageSource
public ExprCreatedDamageSource()
-
-
Method Details
-
supportedEvents
Description copied from interface:EventRestrictedSyntax
Returns 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:
supportedEvents
in interfaceEventRestrictedSyntax
- Returns:
- All supported event classes.
- See Also:
-