Package net.minecraft.network.message
Record Class SignedCommandArguments.Impl
java.lang.Object
java.lang.Record
net.minecraft.network.message.SignedCommandArguments.Impl
- Record Components:
arguments-
- All Implemented Interfaces:
SignedCommandArguments
- Enclosing interface:
SignedCommandArguments
public static record SignedCommandArguments.Impl(Map<String,SignedMessage> arguments)
extends Record
implements SignedCommandArguments
A basic implementation of
SignedCommandArguments.- Mappings:
Namespace Name official dl$aintermediary net/minecraft/class_7448$class_7449named net/minecraft/network/message/SignedCommandArguments$Implofficial bintermediary comp_971named arguments
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.message.SignedCommandArguments
SignedCommandArguments.Impl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,SignedMessage> The field for theargumentsrecord component.Fields inherited from interface net.minecraft.network.message.SignedCommandArguments
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.getMessage(String argumentName) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
arguments
The field for theargumentsrecord component.
-
-
Constructor Details
-
Impl
-
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceSignedCommandArguments- Mappings:
Namespace Name Mixin selector official aLdl;a(Ljava/lang/String;)Ltp;intermediary method_44907Lnet/minecraft/class_7448;method_44907(Ljava/lang/String;)Lnet/minecraft/class_7471;named getMessageLnet/minecraft/network/message/SignedCommandArguments;getMessage(Ljava/lang/String;)Lnet/minecraft/network/message/SignedMessage;
-
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 theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-