Record Class OutgoingRpcMethod.Parameterless<Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.OutgoingRpcMethod.Parameterless<Result>
- Record Components:
methodInfo-resultCodec-
- All Implemented Interfaces:
OutgoingRpcMethod<Void,Result>
- Enclosing interface:
OutgoingRpcMethod<Params,Result>
public static record OutgoingRpcMethod.Parameterless<Result>(RpcMethodInfo methodInfo, com.mojang.serialization.Codec<Result> resultCodec)
extends Record
implements OutgoingRpcMethod<Void,Result>
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/OutgoingRpcMethod$Parameterlessintermediary net/minecraft/class_11808$class_11812official atp$dnamed methodInfointermediary comp_4668official anamed resultCodecintermediary comp_4672official b
-
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.private final com.mojang.serialization.Codec<Result> The field for theresultCodecrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParameterless(RpcMethodInfo rpcMethodInfo, com.mojang.serialization.Codec<Result> codec) -
Method Summary
Modifier and TypeMethodDescriptiondecodeResult(JsonElement result) final 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.com.mojang.serialization.Codec<Result> Returns the value of theresultCodecrecord 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
encodeParams
-
Field Details
-
methodInfo
The field for themethodInforecord component. -
resultCodec
The field for theresultCodecrecord component.
-
-
Constructor Details
-
Parameterless
-
-
Method Details
-
decodeResult
- Specified by:
decodeResultin interfaceOutgoingRpcMethod<Void,Result> - Mappings:
Namespace Name Mixin selector named decodeResultLnet/minecraft/server/dedicated/management/OutgoingRpcMethod;decodeResult(Lcom/google/gson/JsonElement;)Ljava/lang/Object;intermediary method_73682Lnet/minecraft/class_11808;method_73682(Lcom/google/gson/JsonElement;)Ljava/lang/Object;official aLatp;a(Lcom/google/gson/JsonElement;)Ljava/lang/Object;
-
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,Result> - Returns:
- the value of the
methodInforecord component
-
resultCodec
Returns the value of theresultCodecrecord component.- Returns:
- the value of the
resultCodecrecord component
-