Record Class FrameworkReplies.Step
java.lang.Object
java.lang.Record
com.ultikits.ultitools.command.engine.FrameworkReplies.Step
- Enclosing class:
FrameworkReplies
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theendrecord component.private final StringThe field for theliteralrecord component.private final com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> The field for thenoderecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.literal()Returns the value of theliteralrecord component.com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> node()Returns the value of thenoderecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
node
private final com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> nodeThe field for thenoderecord component. -
end
private final int endThe field for theendrecord component. -
literal
The field for theliteralrecord component.
-
-
Constructor Details
-
Step
private Step(com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> node, int end, String literal) Creates an instance of aSteprecord class.- Parameters:
node- the value for thenoderecord componentend- the value for theendrecord componentliteral- the value for theliteralrecord 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. -
node
public com.mojang.brigadier.tree.CommandNode<io.papermc.paper.command.brigadier.CommandSourceStack> node()Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
end
public int end()Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
literal
Returns the value of theliteralrecord component.- Returns:
- the value of the
literalrecord component
-