Class ExprTagKey
- All Implemented Interfaces:
Debuggable
,Expression<String>
,Loopable<String>
,SyntaxElement
,Converter<org.bukkit.Tag<?>,
,String> RuntimeErrorProducer
,SyntaxRuntimeErrorProducer
@Name("Tag Namespaced Key")
@Description("The namespaced key of a minecraft tag. This takes the form of \"namespace:key\", e.g. \"minecraft:dirt\".")
@Examples({"broadcast namespaced keys of the tags of player\'s tool","if the key of {_my-tag} is \"minecraft:stone\":","\treturn true"})
@Since("2.10")
@Keywords({"minecraft tag","type","key","namespace"})
public class ExprTagKey
extends ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.Tag<?>,String>
-
Field Summary
Fields inherited from class ch.njol.skript.expressions.base.SimplePropertyExpression
rawExpr
Fields inherited from class ch.njol.skript.expressions.base.PropertyExpression
DEFAULT_PRIORITY
Fields inherited from interface org.skriptlang.skript.lang.converter.Converter
ALL_CHAINING, ALLOW_UNSAFE_CASTS, NO_CHAINING, NO_LEFT_CHAINING, NO_RIGHT_CHAINING
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ch.njol.skript.expressions.base.SimplePropertyExpression
get, getNode, init, toString
Methods inherited from class ch.njol.skript.expressions.base.PropertyExpression
get, get, getAll, getAnd, getDefaultPatterns, getExpr, getPatterns, isSingle, register, register, registerDefault, registerDefault, setExpr, simplify
Methods inherited from class ch.njol.skript.lang.util.SimpleExpression
acceptChange, change, check, check, check, getArray, getConvertedExpr, getConvertedExpression, getSingle, getSource, getTime, isDefault, isLoopOf, iterator, setTime, setTime, setTime, setTime, setTime, 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.Expression
beforeChange, canBeSingle, canReturn, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, possibleReturnTypes, stream
Methods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warning
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
Methods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprTagKey
public ExprTagKey()
-
-
Method Details
-
convert
Description copied from interface:Converter
Converts an object using this Converter. -
getPropertyName
- Specified by:
getPropertyName
in classch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.Tag<?>,
String>
-
getReturnType
Description copied from interface:Expression
Gets the return type of this expression.- Returns:
- A supertype of any objects returned by
Expression.getSingle(Event)
and the component type of any arrays returned byExpression.getArray(Event)
-