Class PropExprTitle

All Implemented Interfaces:
Debuggable, Expression<Object>, Loopable<Object>, Simplifiable<Expression<? extends Object>>, SyntaxElement, PropertyBaseSyntax<ExpressionPropertyHandler<?,?>>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Title") @Description("Represents the title of something.\n") @Example("set title of event-bossbar to \"<red>hello!\"\n") @Example("on inventory click:\n\tif type of event-item is written book:\n\t\tset title of event-item to formatted \"<obf>%random uuid%\"\n\t\tsend \"Your book's title is now forever forgotten..\" to player\n") @Since("2.16") @RelatedProperty("title") public class PropExprTitle extends PropertyBaseExpression<ExpressionPropertyHandler<?,?>>
  • Constructor Details

    • PropExprTitle

      public PropExprTitle()
  • Method Details

    • register

      public static void register(SyntaxRegistry registry)
    • getProperty

      public Property<ExpressionPropertyHandler<?,?>> getProperty()
      Description copied from interface: PropertyBaseSyntax
      Gets the property this expression represents. This is used to find the appropriate handlers for the expression's input types.
      Returns:
      The property this expression represents.