Record Class RpcSchemaTypeReference
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.schema.RpcSchemaTypeReference
- Record Components:
reference-type-enumValues-
public record RpcSchemaTypeReference(Optional<URI> reference, Optional<String> type, Optional<List<String>> enumValues)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/schema/RpcSchemaTypeReferenceintermediary net/minecraft/class_11823official auanamed referenceintermediary comp_4700official bnamed typeintermediary comp_4701official cnamed enumValuesintermediary comp_4702official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RpcSchemaTypeReference> The field for theenumValuesrecord component.The field for thereferencerecord component.The field for thetyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenumValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static RpcSchemaTypeReferenceofReference(URI uRI) static RpcSchemaTypeReferenceReturns the value of thereferencerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
reference
The field for thereferencerecord component. -
type
The field for thetyperecord component. -
enumValues
The field for theenumValuesrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62369Lnet/minecraft/class_11823;field_62369:Lcom/mojang/serialization/MapCodec;official aLaua;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RpcSchemaTypeReference
-
-
Method Details
-
ofReference
- Mappings:
Namespace Name Mixin selector named ofReferenceLnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;ofReference(Ljava/net/URI;)Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;intermediary method_73730Lnet/minecraft/class_11823;method_73730(Ljava/net/URI;)Lnet/minecraft/class_11823;official aLaua;a(Ljava/net/URI;)Laua;
-
ofType
- Mappings:
Namespace Name Mixin selector named ofTypeLnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;ofType(Ljava/lang/String;)Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;intermediary method_73731Lnet/minecraft/class_11823;method_73731(Ljava/lang/String;)Lnet/minecraft/class_11823;official aLaua;a(Ljava/lang/String;)Laua;
-
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). -
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
enumValues
Returns the value of theenumValuesrecord component.- Returns:
- the value of the
enumValuesrecord component
-