Class ExprPotionEffectTypeCategory
java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<org.bukkit.potion.PotionEffectTypeCategory>
ch.njol.skript.expressions.base.PropertyExpression<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>
ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>
org.skriptlang.skript.bukkit.potion.elements.expressions.ExprPotionEffectTypeCategory
- All Implemented Interfaces:
Debuggable, Expression<org.bukkit.potion.PotionEffectTypeCategory>, Loopable<org.bukkit.potion.PotionEffectTypeCategory>, Simplifiable<Expression<? extends org.bukkit.potion.PotionEffectTypeCategory>>, SyntaxElement, Converter<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer
@Name("Potion Effect Type Category")
@Description({"An expression to obtain the category of a potion effect type.","That is, whether the potion effect type is beneficial, harmful, or neutral."})
@Example("on entity potion effect modification:\n\tif the potion effect type category is harmful:\n\t\t message \"You have been afflicted with %potion effect type%\"\n")
@RequiredPlugins("Minecraft 1.21+")
@Since("2.14")
public class ExprPotionEffectTypeCategory
extends ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>
-
Field Summary
Fields inherited from class ch.njol.skript.expressions.base.SimplePropertyExpression
rawExprFields inherited from class ch.njol.skript.expressions.base.PropertyExpression
DEFAULT_PRIORITYFields inherited from interface Converter
ALL_CHAINING, ALLOW_UNSAFE_CASTS, NO_CHAINING, NO_LEFT_CHAINING, NO_RIGHT_CHAINING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable org.bukkit.potion.PotionEffectTypeCategoryconvert(org.bukkit.potion.PotionEffectType type) Converts an object using this Converter.protected StringClass<? extends org.bukkit.potion.PotionEffectTypeCategory> Gets the return type of this expression.static voidregister(SyntaxRegistry registry) Methods inherited from class ch.njol.skript.expressions.base.SimplePropertyExpression
get, init, toStringMethods inherited from class ch.njol.skript.expressions.base.PropertyExpression
get, get, getAll, getAnd, getDefaultPatterns, getExpr, getPatterns, infoBuilder, isSingle, register, register, registerDefault, registerDefault, setExpr, simplifyMethods inherited from class SimpleExpression
acceptChange, change, check, check, check, getArray, getConvertedExpr, getConvertedExpression, getNode, getSingle, getSource, getTime, isDefault, isLoopOf, iterator, preInit, setTime, setTime, setTime, setTime, setTime, supportsLoopPeeking, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Expression
beforeChange, canBeSingle, canReturn, canReturnAnyOf, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, possibleReturnTypes, returnNestedStructures, returnsNestedStructures, stream, streamAllMethods inherited from interface RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface SyntaxElement
getParserMethods inherited from interface SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprPotionEffectTypeCategory
public ExprPotionEffectTypeCategory()
-
-
Method Details
-
register
-
convert
@Nullable public @Nullable org.bukkit.potion.PotionEffectTypeCategory convert(org.bukkit.potion.PotionEffectType type) Description copied from interface:ConverterConverts an object using this Converter.- Specified by:
convertin interfaceConverter<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>- Specified by:
convertin classch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>- Parameters:
type- The object to convert.- Returns:
- The converted object.
-
getReturnType
Description copied from interface:ExpressionGets 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)
-
getPropertyName
- Specified by:
getPropertyNamein classch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.potion.PotionEffectType, org.bukkit.potion.PotionEffectTypeCategory>
-