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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.Component
apply()
net.kyori.adventure.text.Component
apply
(net.kyori.adventure.text.Component current, int depth) static SimpleGradientTransformation
boolean
static SimpleGradientTransformation
Stream<? extends net.kyori.examination.ExaminableProperty>
int
hashCode()
static SimpleGradientTransformation
static SimpleGradientTransformation
highlight2
(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2) static SimpleGradientTransformation
Create a new gradient transformation from a tag.static SimpleGradientTransformation
static SimpleGradientTransformation
static SimpleGradientTransformation
static SimpleGradientTransformation
unimportant
(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2) static SimpleGradientTransformation
veryUnimportant
(String name, List<net.kyori.adventure.text.minimessage.parser.node.TagPart> args2) void
visit
(net.kyori.adventure.text.minimessage.parser.node.ElementNode curr) static SimpleGradientTransformation
Methods inherited from class net.kyori.adventure.text.minimessage.transformation.Transformation
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Field Details
-
GRADIENT
- See Also:
-
-
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
-
visit
public void visit(net.kyori.adventure.text.minimessage.parser.node.ElementNode curr) - Specified by:
visit
in interfacenet.kyori.adventure.text.minimessage.transformation.Modifying
-
apply
public net.kyori.adventure.text.Component apply()- Specified by:
apply
in classnet.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 interfacenet.kyori.adventure.text.minimessage.transformation.Modifying
-
examinableProperties
- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-
equals
- Specified by:
equals
in classnet.kyori.adventure.text.minimessage.transformation.Transformation
-
hashCode
public int hashCode()- Specified by:
hashCode
in classnet.kyori.adventure.text.minimessage.transformation.Transformation
-