Record Class OutgoingRpcMethod.Simple
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.OutgoingRpcMethod.Simple
- Record Components:
methodInfo-
- All Implemented Interfaces:
OutgoingRpcMethod<Void,Void>
- Enclosing interface:
OutgoingRpcMethod<Params,Result>
public static record OutgoingRpcMethod.Simple(RpcMethodInfo methodInfo)
extends Record
implements OutgoingRpcMethod<Void,Void>
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/OutgoingRpcMethod$Simpleintermediary net/minecraft/class_11808$class_11813official aue$enamed methodInfointermediary comp_4668official a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
OutgoingRpcMethod.Builder<T extends OutgoingRpcMethod<?,?>>, OutgoingRpcMethod.Notification<Params>, OutgoingRpcMethod.Parameterized<Params, Result>, OutgoingRpcMethod.Parameterless<Result>, OutgoingRpcMethod.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RpcMethodInfoThe field for themethodInforecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodInforecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.server.dedicated.management.OutgoingRpcMethod
decodeResult, encodeParams
-
Field Details
-
methodInfo
The field for themethodInforecord component.
-
-
Constructor Details
-
Simple
-
-
Method Details
-
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). -
methodInfo
Returns the value of themethodInforecord component.- Specified by:
methodInfoin interfaceOutgoingRpcMethod<Void,Void> - Returns:
- the value of the
methodInforecord component
-