Record Class RpcRequestParameter<Param>
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.RpcRequestParameter<Param>
- Record Components:
name-schema-required-
public record RpcRequestParameter<Param>(String name, RpcSchema<Param> schema, boolean required)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/RpcRequestParameterintermediary net/minecraft/class_11818official auinamed nameintermediary comp_4686official anamed schemaintermediary comp_4687official bnamed requiredintermediary comp_4688official c
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRpcRequestParameter(String name, RpcSchema<Param> schema) RpcRequestParameter(String name, RpcSchema<Param> schema, boolean required) Creates an instance of aRpcRequestParameterrecord class. -
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.static <Param> com.mojang.serialization.MapCodec<RpcRequestParameter<Param>> name()Returns the value of thenamerecord component.booleanrequired()Returns the value of therequiredrecord component.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
RpcRequestParameter
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/dedicated/management/RpcRequestParameter;<init>(Ljava/lang/String;Lnet/minecraft/server/dedicated/management/schema/RpcSchema;)Vintermediary <init>Lnet/minecraft/class_11818;<init>(Ljava/lang/String;Lnet/minecraft/class_11821;)Vofficial <init>Laui;<init>(Ljava/lang/String;Laum;)V
-
RpcRequestParameter
Creates an instance of aRpcRequestParameterrecord class.
-
-
Method Details
-
method_75580
- Mappings:
Namespace Name Mixin selector named method_75580Lnet/minecraft/server/dedicated/management/RpcRequestParameter;method_75580()Lcom/mojang/serialization/MapCodec;intermediary method_75580Lnet/minecraft/class_11818;method_75580()Lcom/mojang/serialization/MapCodec;official aLaui;a()Lcom/mojang/serialization/MapCodec;
-
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
-
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
required
public boolean required()Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-