Record Class IncomingRpcMethod.Parameterless<Params,Result>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.IncomingRpcMethod.Parameterless<Params,Result>
- Record Components:
info-attributes-handler-
- All Implemented Interfaces:
IncomingRpcMethod<Params,Result>
- Enclosing interface:
IncomingRpcMethod<Params,Result>
public static record IncomingRpcMethod.Parameterless<Params,Result> (RpcMethodInfo<Params,Result> info, IncomingRpcMethod.Attributes attributes, IncomingRpcMethod.ParameterlessHandler<Result> handler)
extends Record
implements IncomingRpcMethod<Params,Result>
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/IncomingRpcMethod$Parameterlessintermediary net/minecraft/class_11796$class_11799official atx$dnamed infointermediary comp_4662official anamed attributesintermediary comp_4907official bnamed handlerintermediary comp_4667official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.dedicated.management.IncomingRpcMethod
IncomingRpcMethod.Attributes, IncomingRpcMethod.Builder<Params,Result>, IncomingRpcMethod.Parameterized<Params, Result>, IncomingRpcMethod.ParameterizedHandler<Params, Result>, IncomingRpcMethod.Parameterless<Params, 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 RpcMethodInfo<Params, Result> The field for theinforecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParameterless(RpcMethodInfo<Params, Result> info, IncomingRpcMethod.Attributes attributes, IncomingRpcMethod.ParameterlessHandler<Result> supplier) -
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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
info
The field for theinforecord component. -
attributes
The field for theattributesrecord component. -
handler
The field for thehandlerrecord component.
-
-
Constructor Details
-
Parameterless
public Parameterless(RpcMethodInfo<Params, Result> info, IncomingRpcMethod.Attributes attributes, IncomingRpcMethod.ParameterlessHandler<Result> supplier) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/dedicated/management/IncomingRpcMethod$Parameterless;<init>(Lnet/minecraft/server/dedicated/management/RpcMethodInfo;Lnet/minecraft/server/dedicated/management/IncomingRpcMethod$Attributes;Lnet/minecraft/server/dedicated/management/IncomingRpcMethod$ParameterlessHandler;)Vintermediary <init>Lnet/minecraft/class_11796$class_11799;<init>(Lnet/minecraft/class_11817;Lnet/minecraft/class_11796$class_12053;Lnet/minecraft/class_11796$class_11800;)Vofficial <init>Latx$d;<init>(Lauh;Latx$a;Latx$e;)V
-
-
Method Details
-
handle
public JsonElement handle(ManagementHandlerDispatcher dispatcher, @Nullable @Nullable JsonElement parameters, ManagementConnectionId remote) - Specified by:
handlein interfaceIncomingRpcMethod<Params,Result> - 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 aLatx;a(Lauu;Lcom/google/gson/JsonElement;Lavn;)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<Params,Result> - Returns:
- the value of the
inforecord component
-
attributes
Returns the value of theattributesrecord component.- Specified by:
attributesin interfaceIncomingRpcMethod<Params,Result> - Returns:
- the value of the
attributesrecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-