Class ExprTextDisplayOpacity

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<Integer>
ch.njol.skript.expressions.base.PropertyExpression<org.bukkit.entity.Display,Integer>
ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Display,Integer>
org.skriptlang.skript.bukkit.displays.text.ExprTextDisplayOpacity
All Implemented Interfaces:
Debuggable, Expression<Integer>, Loopable<Integer>, Simplifiable<Expression<? extends Integer>>, SyntaxElement, Converter<org.bukkit.entity.Display,Integer>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Text Display Opacity") @Description("Returns or changes the text opacity of <a href=\'#display\'>text displays</a>. The default is 255, fully opaque.\nValues are between 0 and 255. 0 to 3 are treated the same as 255, meaning fully opaque.\nValues from 4 to 26 are fully transparent, and opacity increases linearly from there up to 255.\nFor backwards compatability, setting negative values between -1 and -128 wrap around, so -1 is the same as 255 and -128 is the same as 128.\nAdding or subtracting values will adjust the opacity within the bounds of 0-255, so subtracting 300 wil always result in an opacity of 0.\n") @Example("set the text opacity of the last spawned text display to 0 # fully opaque") @Example("set text opacity of all text displays to 255 # fully opaque") @Example("set text opacity of all text displays to 128 # semi-transparent") @Example("set text opacity of all text displays to 4 # fully transparent") @Since("2.10, 2.14 (0-255)") public class ExprTextDisplayOpacity extends ch.njol.skript.expressions.base.SimplePropertyExpression<org.bukkit.entity.Display,Integer>