Class SimpleGradientTransformation

java.lang.Object
net.kyori.adventure.text.minimessage.transformation.Transformation
rocks.gravili.notquests.paper.minimessage.SimpleGradientTag
All Implemented Interfaces:
net.kyori.adventure.text.minimessage.transformation.Modifying, net.kyori.examination.Examinable

public final class SimpleGradientTransformation extends net.kyori.adventure.text.minimessage.transformation.Transformation implements net.kyori.adventure.text.minimessage.transformation.Modifying
A transformation that applies a colour gradient. Source code has been copied from @GradientTransformation
Since:
4.10.0
  • Field Details

  • Method Details

    • main

      public static SimpleGradientTransformation main(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
      Create a new gradient transformation from a tag.
      Parameters:
      name - the tag name
      Returns:
      a new transformation
      Since:
      4.10.0
    • highlight

      public static SimpleGradientTransformation highlight(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • highlight2

      public static SimpleGradientTransformation highlight2(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • error

      public static SimpleGradientTransformation error(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • success

      public static SimpleGradientTransformation success(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • unimportant

      public static SimpleGradientTransformation unimportant(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • veryUnimportant

      public static SimpleGradientTransformation veryUnimportant(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • warn

      public static SimpleGradientTransformation warn(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • positive

      public static SimpleGradientTransformation positive(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • negative

      public static SimpleGradientTransformation negative(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2)
    • create

      public static SimpleGradientTransformation create(List<String> args)
    • visit

      public void visit(net.kyori.adventure.text.minimessage.parser.node.ElementNode curr)
      Specified by:
      visit in interface net.kyori.adventure.text.minimessage.transformation.Modifying
    • apply

      public net.kyori.adventure.text.Component apply()
      Specified by:
      apply in class net.kyori.adventure.text.minimessage.transformation.Transformation
    • apply

      public net.kyori.adventure.text.Component apply(net.kyori.adventure.text.Component current, int depth)
      Specified by:
      apply in interface net.kyori.adventure.text.minimessage.transformation.Modifying
    • examinableProperties

      @NotNull public Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
      Specified by:
      examinableProperties in interface net.kyori.examination.Examinable
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in class net.kyori.adventure.text.minimessage.transformation.Transformation
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class net.kyori.adventure.text.minimessage.transformation.Transformation