Package ch.njol.skript.expressions
Class ExprSpawnReason
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<T>
ch.njol.skript.expressions.base.EventValueExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>
ch.njol.skript.expressions.ExprSpawnReason
- All Implemented Interfaces:
Debuggable,DefaultExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>,Expression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>,SyntaxElement
@Name("Spawn Reason")
@Description("The <a href=\'classes.html#spawnreason\'>spawn reason</a> in a <a href=\'events.html#spawn\'>spawn</a> event.")
@Examples({"on spawn:","\tspawn reason is reinforcements or breeding"})
@Since("2.3")
public class ExprSpawnReason
extends EventValueExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ch.njol.skript.expressions.base.EventValueExpression
acceptChange, change, get, getReturnType, init, init, isDefault, isSingle, setTimeMethods inherited from class ch.njol.skript.lang.util.SimpleExpression
check, check, check, getAll, getAnd, getArray, getConvertedExpr, getConvertedExpression, getSingle, getSource, getTime, isLoopOf, iterator, setTime, setTime, setTime, simplify, 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, check, check, getAll, getAnd, getArray, getConvertedExpression, getSingle, getSource, getTime, isLoopOf, iterator, simplify, streamMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
-
Constructor Details
-
ExprSpawnReason
public ExprSpawnReason()
-
-
Method Details
-
toString
- Specified by:
toStringin interfaceDebuggable- Overrides:
toStringin classEventValueExpression<org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason>- Parameters:
e- The event to get information to. 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
-