Record Class RpcMethodInfo
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcMethodInfo
- Record Components:
name-description-runOnMainThread-discoverable-params-result-
public record RpcMethodInfo(Identifier name, String description, boolean runOnMainThread, boolean discoverable, List<RpcRequestParameter> params, Optional<RpcResponseResult> result)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/RpcMethodInfointermediary net/minecraft/class_11817official auinamed nameintermediary comp_4680official bnamed descriptionintermediary comp_4681official cnamed runOnMainThreadintermediary comp_4682official dnamed discoverableintermediary comp_4683official enamed paramsintermediary comp_4684official fnamed resultintermediary comp_4685official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RpcMethodInfo> private final StringThe field for thedescriptionrecord component.private final booleanThe field for thediscoverablerecord component.private final IdentifierThe field for thenamerecord component.private final List<RpcRequestParameter> The field for theparamsrecord component.private final Optional<RpcResponseResult> The field for theresultrecord component.private final booleanThe field for therunOnMainThreadrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcMethodInfo(Identifier name, String description, boolean discoverable, boolean runOnMainThread) RpcMethodInfo(Identifier identifier, String string, boolean bool, boolean bool2, List<RpcRequestParameter> list, Optional<RpcResponseResult> optional) RpcMethodInfo(Identifier name, String description, List<RpcRequestParameter> params, Optional<RpcResponseResult> result) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.booleanReturns the value of thediscoverablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.params()Returns the value of theparamsrecord component.result()Returns the value of theresultrecord component.booleanReturns the value of therunOnMainThreadrecord component.final StringtoString()Returns a string representation of this record class.withParams(RpcRequestParameter[] params) withResult(RpcResponseResult result)
-
Field Details
-
name
The field for thenamerecord component. -
description
The field for thedescriptionrecord component. -
runOnMainThread
private final boolean runOnMainThreadThe field for therunOnMainThreadrecord component. -
discoverable
private final boolean discoverableThe field for thediscoverablerecord component. -
params
The field for theparamsrecord component. -
result
The field for theresultrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/RpcMethodInfo;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62342Lnet/minecraft/class_11817;field_62342:Lcom/mojang/serialization/MapCodec;official aLaui;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RpcMethodInfo
public RpcMethodInfo(Identifier name, String description, boolean discoverable, boolean runOnMainThread) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/dedicated/management/RpcMethodInfo;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;ZZ)Vintermediary <init>Lnet/minecraft/class_11817;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;ZZ)Vofficial <init>Laui;<init>(Lamy;Ljava/lang/String;ZZ)V
-
RpcMethodInfo
public RpcMethodInfo(Identifier name, String description, List<RpcRequestParameter> params, Optional<RpcResponseResult> result) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/dedicated/management/RpcMethodInfo;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;Ljava/util/List;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_11817;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;Ljava/util/List;Ljava/util/Optional;)Vofficial <init>Laui;<init>(Lamy;Ljava/lang/String;Ljava/util/List;Ljava/util/Optional;)V
-
RpcMethodInfo
public RpcMethodInfo(Identifier identifier, String string, boolean bool, boolean bool2, List<RpcRequestParameter> list, Optional<RpcResponseResult> optional)
-
-
Method Details
-
withParams
- Mappings:
Namespace Name Mixin selector named withParamsLnet/minecraft/server/dedicated/management/RpcMethodInfo;withParams([Lnet/minecraft/server/dedicated/management/RpcRequestParameter;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo;intermediary method_73706Lnet/minecraft/class_11817;method_73706([Lnet/minecraft/class_11818;)Lnet/minecraft/class_11817;official aLaui;a([Lauj;)Laui;
-
withResult
- Mappings:
Namespace Name Mixin selector named withResultLnet/minecraft/server/dedicated/management/RpcMethodInfo;withResult(Lnet/minecraft/server/dedicated/management/RpcResponseResult;)Lnet/minecraft/server/dedicated/management/RpcMethodInfo;intermediary method_73704Lnet/minecraft/class_11817;method_73704(Lnet/minecraft/class_11820;)Lnet/minecraft/class_11817;official aLaui;a(Laul;)Laui;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
runOnMainThread
public boolean runOnMainThread()Returns the value of therunOnMainThreadrecord component.- Returns:
- the value of the
runOnMainThreadrecord component
-
discoverable
public boolean discoverable()Returns the value of thediscoverablerecord component.- Returns:
- the value of the
discoverablerecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-