Record Class CompiledCommand
java.lang.Object
java.lang.Record
com.ultikits.ultitools.command.engine.CompiledCommand
- Record Components:
label- the primary root namealiases- the additional labelsdescription- the help description, or nulltree- the real command treesignature- the canonical structure and visibility signature
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thealiasesrecord component.private final @Nullable StringThe field for thedescriptionrecord component.private final StringThe field for thelabelrecord component.private final StringThe field for thesignaturerecord component.private final com.mojang.brigadier.tree.LiteralCommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> The field for thetreerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.label()Returns the value of thelabelrecord component.Returns the value of thesignaturerecord component.final StringtoString()Returns a string representation of this record class.com.mojang.brigadier.tree.LiteralCommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> tree()Returns the value of thetreerecord component.
-
Field Details
-
label
-
aliases
-
description
The field for thedescriptionrecord component. -
tree
private final com.mojang.brigadier.tree.LiteralCommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> treeThe field for thetreerecord component. -
signature
-
-
Constructor Details
-
CompiledCommand
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
label
-
aliases
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
tree
-
signature
-