Record Class IncomingRpcMethod.Parameterless<Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Parameterless<Result>
- Record Components:
info-attributes-resultCodec-handler-
- All Implemented Interfaces:
IncomingRpcMethod
- Enclosing interface:
IncomingRpcMethod
public static record IncomingRpcMethod.Parameterless<Result>(RpcMethodInfo info, IncomingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Result> resultCodec, IncomingRpcMethod.ParameterlessHandler<Result> handler)
extends Record
implements IncomingRpcMethod
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/IncomingRpcMethod$Parameterlessintermediary net/minecraft/class_11796$class_11799official ati$enamed infointermediary comp_4662official anamed attributesintermediary comp_4907official bnamed resultCodecintermediary comp_4666official cnamed handlerintermediary comp_4667official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.IncomingRpcMethod
IncomingRpcMethod.Attributes, IncomingRpcMethod.Builder<T extends IncomingRpcMethod>, IncomingRpcMethod.Factory<T extends IncomingRpcMethod>, IncomingRpcMethod.Parameterized<Params,Result>, IncomingRpcMethod.ParameterizedHandler<Params, Result>, IncomingRpcMethod.Parameterless<Result>, IncomingRpcMethod.ParameterlessHandler<Result> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IncomingRpcMethod.AttributesThe field for theattributesrecord component.private final IncomingRpcMethod.ParameterlessHandler<Result> The field for thehandlerrecord component.private final RpcMethodInfoThe field for theinforecord component.private final com.mojang.serialization.Codec<Result> The field for theresultCodecrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParameterless(RpcMethodInfo rpcMethodInfo, IncomingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Result> codec, IncomingRpcMethod.ParameterlessHandler<Result> parameterlessHandler) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.final booleanIndicates whether some other object is "equal to" this one.handle(ManagementHandlerDispatcher dispatcher, @Nullable JsonElement parameters, ManagementConnectionId remote) handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.com.mojang.serialization.Codec<Result> Returns the value of theresultCodecrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
info
The field for theinforecord component. -
attributes
The field for theattributesrecord component. -
resultCodec
The field for theresultCodecrecord component. -
handler
The field for thehandlerrecord component.
-
-
Constructor Details
-
Parameterless
public Parameterless(RpcMethodInfo rpcMethodInfo, IncomingRpcMethod.Attributes attributes, com.mojang.serialization.Codec<Result> codec, IncomingRpcMethod.ParameterlessHandler<Result> parameterlessHandler)
-
-
Method Details
-
handle
public JsonElement handle(ManagementHandlerDispatcher dispatcher, @Nullable @Nullable JsonElement parameters, ManagementConnectionId remote) - Specified by:
handlein interfaceIncomingRpcMethod- Mappings:
Namespace Name Mixin selector named handleLnet/minecraft/server/dedicated/management/IncomingRpcMethod;handle(Lnet/minecraft/server/dedicated/management/dispatch/ManagementHandlerDispatcher;Lcom/google/gson/JsonElement;Lnet/minecraft/server/dedicated/management/network/ManagementConnectionId;)Lcom/google/gson/JsonElement;intermediary method_73621Lnet/minecraft/class_11796;method_73621(Lnet/minecraft/class_11827;Lcom/google/gson/JsonElement;Lnet/minecraft/class_11838;)Lcom/google/gson/JsonElement;official aLati;a(Lauf;Lcom/google/gson/JsonElement;Lauy;)Lcom/google/gson/JsonElement;
-
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). -
info
Returns the value of theinforecord component.- Specified by:
infoin interfaceIncomingRpcMethod- Returns:
- the value of the
inforecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceIncomingRpcMethod- Returns:
- the value of the
attributesrecord component
-
resultCodec
Returns the value of theresultCodecrecord component.- Returns:
- the value of the
resultCodecrecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-