Class ExprColorOf

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<Color>
ch.njol.skript.expressions.base.PropertyExpression<Object,Color>
org.skriptlang.skript.bukkit.misc.elements.expressions.ExprColorOf
All Implemented Interfaces:
Debuggable, Expression<Color>, Loopable<Color>, Simplifiable<Expression<? extends Color>>, SyntaxElement, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Color of") @Description({"The <a href='#color'>color</a> of an item, entity, block, firework effect, or text display.","This can also be used to color chat messages with \"&lt;%color of ...%&gt;this text is colored!\".","Do note that firework effects support setting, adding, removing, resetting, and deleting; text displays support setting and resetting; and items, entities, and blocks only support setting, and only for very few items/blocks."}) @Example("on click on wool:\n\tif event-block is tagged with minecraft tag \"wool\":\n\t\tmessage \"This wool block is <%color of block%>%color of block%<reset>!\"\n\t\tset the color of the block to black\n") @Since("1.2, 2.10 (displays), 2.16 (boss bars)") public class ExprColorOf extends ch.njol.skript.expressions.base.PropertyExpression<Object,Color>
  • Constructor Details

    • ExprColorOf

      public ExprColorOf()
  • Method Details