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/RpcSchemaTypeReference
intermediary net/minecraft/class_11823
official aua
named reference
intermediary comp_4700
official b
named type
intermediary comp_4701
official c
named enumValues
intermediary comp_4702
official d
  • 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.
    • enumValues

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

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

  • Method Details

    • ofReference

      public static RpcSchemaTypeReference ofReference(URI reference)
      Mappings:
      Namespace Name Mixin selector
      named ofReference Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;ofReference(Ljava/net/URI;)Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;
      intermediary method_73730 Lnet/minecraft/class_11823;method_73730(Ljava/net/URI;)Lnet/minecraft/class_11823;
      official a Laua;a(Ljava/net/URI;)Laua;
    • ofType

      public static RpcSchemaTypeReference ofType(String type)
      Mappings:
      Namespace Name Mixin selector
      named ofType Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;ofType(Ljava/lang/String;)Lnet/minecraft/server/dedicated/management/schema/RpcSchemaTypeReference;
      intermediary method_73731 Lnet/minecraft/class_11823;method_73731(Ljava/lang/String;)Lnet/minecraft/class_11823;
      official a Laua;a(Ljava/lang/String;)Laua;
    • 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
    • enumValues

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