Class ExprFoodExhaustion
- All Implemented Interfaces:
Debuggable,Expression<Float>,Loopable<Float>,Simplifiable<Expression<? extends Float>>,SyntaxElement,DamageSourceExperimentSyntax,Converter<org.bukkit.damage.DamageSource,,Float> ExperimentalSyntax,SimpleExperimentalSyntax,RuntimeErrorProducer,SyntaxRuntimeErrorProducer
@Name("Damage Source - Food Exhaustion")
@Description("The amount of hunger exhaustion caused by a damage source.")
@Example("on damage:\n\tif the food exhaustion of event-damage source is 10:\n")
@Since("2.12")
@RequiredPlugins("Minecraft 1.20.4+")
public class ExprFoodExhaustion
extends ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.damage.DamageSource,Float>
implements DamageSourceExperimentSyntax
-
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 org.skriptlang.skript.lang.converter.Converter
ALL_CHAINING, ALLOW_UNSAFE_CASTS, NO_CHAINING, NO_LEFT_CHAINING, NO_RIGHT_CHAININGFields inherited from interface org.skriptlang.skript.bukkit.damagesource.DamageSourceExperimentSyntax
EXPERIMENT_DATA -
Constructor Summary
Constructors -
Method Summary
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 ch.njol.skript.lang.util.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.skriptlang.skript.bukkit.damagesource.DamageSourceExperimentSyntax
getExperimentDataMethods inherited from interface ch.njol.skript.lang.Expression
beforeChange, canBeSingle, canReturn, changeInPlace, changeInPlace, getAcceptedChangeModes, getOptionalSingle, getSyntaxTypeName, possibleReturnTypes, stream, streamAllMethods inherited from interface org.skriptlang.skript.log.runtime.RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface org.skriptlang.skript.lang.experiment.SimpleExperimentalSyntax
isSatisfiedByMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser, init, preInitMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprFoodExhaustion
public ExprFoodExhaustion()
-
-
Method Details
-
convert
Description copied from interface:ConverterConverts an object using this Converter. -
getReturnType
Description copied from interface:ExpressionGets the return type of this expression.- Specified by:
getReturnTypein interfaceExpression<Float>- 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.damage.DamageSource,Float>
-