Class ExprFuel
- All Implemented Interfaces:
ch.njol.skript.lang.Debuggable,ch.njol.skript.lang.Expression<Double>,ch.njol.skript.lang.Loopable<Double>,ch.njol.skript.lang.simplification.Simplifiable<ch.njol.skript.lang.Expression<? extends Double>>,ch.njol.skript.lang.SyntaxElement,org.skriptlang.skript.lang.converter.Converter<Vehicle,,Double> org.skriptlang.skript.log.runtime.RuntimeErrorProducer,org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
@Name("MTV Vehicle\'s vehicle fuel")
@Description("Get the vehicle\'s vehicle fuel (from VehicleData or VehicleData.yml \u2013 whatever is lower)")
@Examples({"set {_fuel} to {_car}\'s vehicle fuel level","set {_fuel} to vehicle fuel level of (player\'s driven mtv vehicle)","set vehicle fuel level of {_car} to 96","remove 10 from {_car}\'s vehicle fuel level"})
@Since("2.5.6")
public class ExprFuel
extends ch.njol.skript.expressions.base.SimplePropertyExpression<Vehicle,Double>
-
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_CHAINING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Class<?> @NotNull []acceptChange(ch.njol.skript.classes.Changer.ChangeMode mode) voidchange(@NotNull org.bukkit.event.Event event, @Nullable Object @NotNull [] delta, @NotNull ch.njol.skript.classes.Changer.ChangeMode changeMode) @Nullable Doubleprotected StringMethods 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
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 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 ch.njol.skript.lang.SyntaxElement
getParserMethods inherited from interface org.skriptlang.skript.log.runtime.SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
ExprFuel
public ExprFuel()
-
-
Method Details
-
getPropertyName
-
getReturnType
-
convert
-
acceptChange
@Nullable public @Nullable Class<?> @NotNull [] acceptChange(ch.njol.skript.classes.Changer.ChangeMode mode) -
change
public void change(@NotNull @NotNull org.bukkit.event.Event event, @Nullable @Nullable Object @NotNull [] delta, @NotNull ch.njol.skript.classes.Changer.ChangeMode changeMode)
-