Package net.minecraft.network.chat
Record Class SignableCommand<S>
java.lang.Object
java.lang.Record
net.minecraft.network.chat.SignableCommand<S>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<SignableCommand.Argument<S>>
The field for thearguments
record component. -
Constructor Summary
ConstructorDescriptionSignableCommand
(List<SignableCommand.Argument<S>> arguments) Creates an instance of aSignableCommand
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thearguments
record component.private static <S> List<SignableCommand.Argument<S>>
collectArguments
(String p_252055_, com.mojang.brigadier.context.CommandContextBuilder<S> p_251770_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static <S> SignableCommand<S>
of
(com.mojang.brigadier.ParseResults<S> p_250316_) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
arguments
The field for thearguments
record component.
-
-
Constructor Details
-
SignableCommand
Creates an instance of aSignableCommand
record class.- Parameters:
arguments
- the value for thearguments
record component
-
-
Method Details
-
of
-
collectArguments
private static <S> List<SignableCommand.Argument<S>> collectArguments(String p_252055_, com.mojang.brigadier.context.CommandContextBuilder<S> p_251770_) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
arguments
Returns the value of thearguments
record component.- Returns:
- the value of the
arguments
record component
-