Package net.minecraft.network.chat
Record Class SignableCommand<S>
java.lang.Object
java.lang.Record
net.minecraft.network.chat.SignableCommand<S>
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<SignableCommand.Argument<S>>The field for theargumentsrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionSignableCommand(List<SignableCommand.Argument<S>> arguments) Creates an instance of aSignableCommandrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.private static <S> List<SignableCommand.Argument<S>>collectArguments(String p_252055_, com.mojang.brigadier.context.CommandContextBuilder<S> p_251770_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static <S> SignableCommand<S>of(com.mojang.brigadier.ParseResults<S> p_250316_) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
argumentsThe field for theargumentsrecord component.
 
- 
- 
Constructor Details- 
SignableCommandCreates an instance of aSignableCommandrecord class.- Parameters:
- arguments- the value for the- argumentsrecord component
 
 
- 
- 
Method Details- 
of
- 
collectArgumentsprivate static <S> List<SignableCommand.Argument<S>> collectArguments(String p_252055_, com.mojang.brigadier.context.CommandContextBuilder<S> p_251770_) 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
argumentsReturns the value of theargumentsrecord component.- Returns:
- the value of the argumentsrecord component
 
 
-