Record Class RpcItemSchema
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.schema.RpcItemSchema
- Record Components:
reference-type-items-enumValues-
public record RpcItemSchema(Optional<URI> reference, Optional<String> type, Optional<RpcSchemaTypeReference> items, Optional<List<String>> enumValues)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/dedicated/management/schema/RpcItemSchemaintermediary net/minecraft/class_11816official atsnamed referenceintermediary comp_4676official bnamed typeintermediary comp_4677official cnamed itemsintermediary comp_4678official dnamed enumValuesintermediary comp_4679official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RpcItemSchema> The field for theenumValuesrecord component.private final Optional<RpcSchemaTypeReference> The field for theitemsrecord component.The field for thereferencerecord component.The field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRpcItemSchema(Optional<URI> optional, Optional<String> optional2, Optional<RpcSchemaTypeReference> optional3, Optional<List<String>> optional4) -
Method Summary
Modifier and TypeMethodDescriptionasArray()Returns 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.items()Returns the value of theitemsrecord component.static RpcItemSchemaofArray(RpcSchemaTypeReference items) static RpcItemSchemastatic RpcItemSchemaofReference(URI reference) static RpcItemSchemaReturns 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. -
items
The field for theitemsrecord component. -
enumValues
The field for theenumValuesrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/schema/RpcItemSchema;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62341Lnet/minecraft/class_11816;field_62341:Lcom/mojang/serialization/MapCodec;official aLats;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
RpcItemSchema
-
-
Method Details
-
ofReference
- Mappings:
Namespace Name Mixin selector named ofReferenceLnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofReference(Ljava/net/URI;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;intermediary method_73701Lnet/minecraft/class_11816;method_73701(Ljava/net/URI;)Lnet/minecraft/class_11816;official aLats;a(Ljava/net/URI;)Lats;
-
ofType
- Mappings:
Namespace Name Mixin selector named ofTypeLnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofType(Ljava/lang/String;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;intermediary method_73703Lnet/minecraft/class_11816;method_73703(Ljava/lang/String;)Lnet/minecraft/class_11816;official aLats;a(Ljava/lang/String;)Lats;
-
ofEnum
- Mappings:
Namespace Name Mixin selector named ofEnumLnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofEnum(Ljava/util/List;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;intermediary method_73702Lnet/minecraft/class_11816;method_73702(Ljava/util/List;)Lnet/minecraft/class_11816;official aLats;a(Ljava/util/List;)Lats;
-
ofArray
- Mappings:
Namespace Name Mixin selector named ofArrayLnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofArray(Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;intermediary method_73699Lnet/minecraft/class_11816;method_73699(Lnet/minecraft/class_11823;)Lnet/minecraft/class_11816;official aLats;a(Laua;)Lats;
-
asArray
- Mappings:
Namespace Name Mixin selector named asArrayLnet/minecraft/server/dedicated/management/schema/RpcItemSchema;asArray()Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;intermediary method_73698Lnet/minecraft/class_11816;method_73698()Lnet/minecraft/class_11816;official aLats;a()Lats;
-
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
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
enumValues
Returns the value of theenumValuesrecord component.- Returns:
- the value of the
enumValuesrecord component
-