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/RpcItemSchema
intermediary net/minecraft/class_11816
official ats
named reference
intermediary comp_4676
official b
named type
intermediary comp_4677
official c
named items
intermediary comp_4678
official d
named enumValues
intermediary comp_4679
official e
  • Field Details

    • reference

      private final Optional<URI> reference
      The field for the reference record component.
    • type

      private final Optional<String> type
      The field for the type record component.
    • items

      private final Optional<RpcSchemaTypeReference> items
      The field for the items record component.
    • enumValues

      private final Optional<List<String>> enumValues
      The field for the enumValues record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<RpcItemSchema> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_62341 Lnet/minecraft/class_11816;field_62341:Lcom/mojang/serialization/MapCodec;
      official a Lats;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • ofReference

      public static RpcItemSchema ofReference(URI reference)
      Mappings:
      Namespace Name Mixin selector
      named ofReference Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofReference(Ljava/net/URI;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;
      intermediary method_73701 Lnet/minecraft/class_11816;method_73701(Ljava/net/URI;)Lnet/minecraft/class_11816;
      official a Lats;a(Ljava/net/URI;)Lats;
    • ofType

      public static RpcItemSchema ofType(String type)
      Mappings:
      Namespace Name Mixin selector
      named ofType Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofType(Ljava/lang/String;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;
      intermediary method_73703 Lnet/minecraft/class_11816;method_73703(Ljava/lang/String;)Lnet/minecraft/class_11816;
      official a Lats;a(Ljava/lang/String;)Lats;
    • ofEnum

      public static RpcItemSchema ofEnum(List<String> enumValues)
      Mappings:
      Namespace Name Mixin selector
      named ofEnum Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofEnum(Ljava/util/List;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;
      intermediary method_73702 Lnet/minecraft/class_11816;method_73702(Ljava/util/List;)Lnet/minecraft/class_11816;
      official a Lats;a(Ljava/util/List;)Lats;
    • ofArray

      public static RpcItemSchema ofArray(RpcSchemaTypeReference items)
      Mappings:
      Namespace Name Mixin selector
      named ofArray Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;ofArray(Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;)Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;
      intermediary method_73699 Lnet/minecraft/class_11816;method_73699(Lnet/minecraft/class_11823;)Lnet/minecraft/class_11816;
      official a Lats;a(Laua;)Lats;
    • asArray

      public RpcItemSchema asArray()
      Mappings:
      Namespace Name Mixin selector
      named asArray Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;asArray()Lnet/minecraft/server/dedicated/management/schema/RpcItemSchema;
      intermediary method_73698 Lnet/minecraft/class_11816;method_73698()Lnet/minecraft/class_11816;
      official a Lats;a()Lats;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • reference

      public Optional<URI> reference()
      Returns the value of the reference record component.
      Returns:
      the value of the reference record component
    • type

      public Optional<String> type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • items

      Returns the value of the items record component.
      Returns:
      the value of the items record component
    • enumValues

      public Optional<List<String>> enumValues()
      Returns the value of the enumValues record component.
      Returns:
      the value of the enumValues record component