Record Class FrameworkReplies.Walk
java.lang.Object
java.lang.Record
com.ultikits.ultitools.command.engine.FrameworkReplies.Walk
- Enclosing class:
FrameworkReplies
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecanonicalrecord component.private final com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> The field for thedeepestrecord component.private final intThe field for thedepthrecord component.private final com.mojang.brigadier.MessageThe field for theparseErrorrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanonicalrecord component.com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> deepest()Returns the value of thedeepestrecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.brigadier.MessageReturns the value of theparseErrorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
deepest
private final com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> deepestThe field for thedeepestrecord component. -
depth
private final int depthThe field for thedepthrecord component. -
canonical
The field for thecanonicalrecord component. -
parseError
private final com.mojang.brigadier.Message parseErrorThe field for theparseErrorrecord component.
-
-
Constructor Details
-
Walk
private Walk(com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> deepest, int depth, String canonical, com.mojang.brigadier.Message parseError) Creates an instance of aWalkrecord class.- Parameters:
deepest- the value for thedeepestrecord componentdepth- the value for thedepthrecord componentcanonical- the value for thecanonicalrecord componentparseError- the value for theparseErrorrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
deepest
public com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> deepest()Returns the value of thedeepestrecord component.- Returns:
- the value of the
deepestrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
canonical
Returns the value of thecanonicalrecord component.- Returns:
- the value of the
canonicalrecord component
-
parseError
public com.mojang.brigadier.Message parseError()Returns the value of theparseErrorrecord component.- Returns:
- the value of the
parseErrorrecord component
-