Record Class RpcSchema

java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.management.schema.RpcSchema
Record Components:
reference -
type -
items -
properties -
enumValues -

public record RpcSchema(Optional<URI> reference, Optional<String> type, Optional<RpcSchema> items, Optional<Map<String,RpcSchema>> properties, Optional<List<String>> enumValues) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/schema/RpcSchema
intermediary net/minecraft/class_11821
official atx
named reference
intermediary comp_4693
official v
named type
intermediary comp_4694
official w
named items
intermediary comp_4695
official x
named properties
intermediary comp_4696
official y
named enumValues
intermediary comp_4697
official z
  • 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<RpcSchema> items
      The field for the items record component.
    • properties

      private final Optional<Map<String,RpcSchema>> properties
      The field for the properties record component.
    • enumValues

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

      public static final com.mojang.serialization.Codec<RpcSchema> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/server/dedicated/management/schema/RpcSchema;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_62347 Lnet/minecraft/class_11821;field_62347:Lcom/mojang/serialization/Codec;
      official a Latx;a:Lcom/mojang/serialization/Codec;
    • REGISTERED_SCHEMAS

      private static final List<RpcSchemaEntry> REGISTERED_SCHEMAS
      Mappings:
      Namespace Name Mixin selector
      named REGISTERED_SCHEMAS Lnet/minecraft/server/dedicated/management/schema/RpcSchema;REGISTERED_SCHEMAS:Ljava/util/List;
      intermediary field_62346 Lnet/minecraft/class_11821;field_62346:Ljava/util/List;
      official A Latx;A:Ljava/util/List;
    • BOOLEAN

      public static final RpcSchema BOOLEAN
      Mappings:
      Namespace Name Mixin selector
      named BOOLEAN Lnet/minecraft/server/dedicated/management/schema/RpcSchema;BOOLEAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_62348 Lnet/minecraft/class_11821;field_62348:Lnet/minecraft/class_11821;
      official b Latx;b:Latx;
    • INTEGER

      public static final RpcSchema INTEGER
      Mappings:
      Namespace Name Mixin selector
      named INTEGER Lnet/minecraft/server/dedicated/management/schema/RpcSchema;INTEGER:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_62349 Lnet/minecraft/class_11821;field_62349:Lnet/minecraft/class_11821;
      official c Latx;c:Latx;
    • NUMBER

      public static final RpcSchema NUMBER
      Mappings:
      Namespace Name Mixin selector
      named NUMBER Lnet/minecraft/server/dedicated/management/schema/RpcSchema;NUMBER:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_62350 Lnet/minecraft/class_11821;field_62350:Lnet/minecraft/class_11821;
      official d Latx;d:Latx;
    • STRING

      public static final RpcSchema STRING
      Mappings:
      Namespace Name Mixin selector
      named STRING Lnet/minecraft/server/dedicated/management/schema/RpcSchema;STRING:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_62351 Lnet/minecraft/class_11821;field_62351:Lnet/minecraft/class_11821;
      official e Latx;e:Latx;
    • PLAYER_ID

      public static final RpcSchema PLAYER_ID
      Mappings:
      Namespace Name Mixin selector
      named PLAYER_ID Lnet/minecraft/server/dedicated/management/schema/RpcSchema;PLAYER_ID:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_62352 Lnet/minecraft/class_11821;field_62352:Lnet/minecraft/class_11821;
      official f Latx;f:Latx;
    • DIFFICULTY

      public static final RpcSchemaEntry DIFFICULTY
      Mappings:
      Namespace Name Mixin selector
      named DIFFICULTY Lnet/minecraft/server/dedicated/management/schema/RpcSchema;DIFFICULTY:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62354 Lnet/minecraft/class_11821;field_62354:Lnet/minecraft/class_11822;
      official g Latx;g:Laty;
    • GAME_MODE

      public static final RpcSchemaEntry GAME_MODE
      Mappings:
      Namespace Name Mixin selector
      named GAME_MODE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;GAME_MODE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62355 Lnet/minecraft/class_11821;field_62355:Lnet/minecraft/class_11822;
      official h Latx;h:Laty;
    • PLAYER

      public static final RpcSchemaEntry PLAYER
      Mappings:
      Namespace Name Mixin selector
      named PLAYER Lnet/minecraft/server/dedicated/management/schema/RpcSchema;PLAYER:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62356 Lnet/minecraft/class_11821;field_62356:Lnet/minecraft/class_11822;
      official i Latx;i:Laty;
    • VERSION

      public static final RpcSchemaEntry VERSION
      Mappings:
      Namespace Name Mixin selector
      named VERSION Lnet/minecraft/server/dedicated/management/schema/RpcSchema;VERSION:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62357 Lnet/minecraft/class_11821;field_62357:Lnet/minecraft/class_11822;
      official j Latx;j:Laty;
    • SERVER_STATE

      public static final RpcSchemaEntry SERVER_STATE
      Mappings:
      Namespace Name Mixin selector
      named SERVER_STATE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;SERVER_STATE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62358 Lnet/minecraft/class_11821;field_62358:Lnet/minecraft/class_11822;
      official k Latx;k:Laty;
    • GAME_RULE_TYPE

      public static final RpcSchema GAME_RULE_TYPE
      Mappings:
      Namespace Name Mixin selector
      named GAME_RULE_TYPE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;GAME_RULE_TYPE:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_62359 Lnet/minecraft/class_11821;field_62359:Lnet/minecraft/class_11821;
      official l Latx;l:Latx;
    • TYPED_GAME_RULE

      public static final RpcSchemaEntry TYPED_GAME_RULE
      Mappings:
      Namespace Name Mixin selector
      named TYPED_GAME_RULE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;TYPED_GAME_RULE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62360 Lnet/minecraft/class_11821;field_62360:Lnet/minecraft/class_11822;
      official m Latx;m:Laty;
    • UNTYPED_GAME_RULE

      public static final RpcSchemaEntry UNTYPED_GAME_RULE
      Mappings:
      Namespace Name Mixin selector
      named UNTYPED_GAME_RULE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;UNTYPED_GAME_RULE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62361 Lnet/minecraft/class_11821;field_62361:Lnet/minecraft/class_11822;
      official n Latx;n:Laty;
    • MESSAGE

      public static final RpcSchemaEntry MESSAGE
      Mappings:
      Namespace Name Mixin selector
      named MESSAGE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;MESSAGE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62362 Lnet/minecraft/class_11821;field_62362:Lnet/minecraft/class_11822;
      official o Latx;o:Laty;
    • SYSTEM_MESSAGE

      public static final RpcSchemaEntry SYSTEM_MESSAGE
      Mappings:
      Namespace Name Mixin selector
      named SYSTEM_MESSAGE Lnet/minecraft/server/dedicated/management/schema/RpcSchema;SYSTEM_MESSAGE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62363 Lnet/minecraft/class_11821;field_62363:Lnet/minecraft/class_11822;
      official p Latx;p:Laty;
    • KICK_PLAYER

      public static final RpcSchemaEntry KICK_PLAYER
      Mappings:
      Namespace Name Mixin selector
      named KICK_PLAYER Lnet/minecraft/server/dedicated/management/schema/RpcSchema;KICK_PLAYER:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62364 Lnet/minecraft/class_11821;field_62364:Lnet/minecraft/class_11822;
      official q Latx;q:Laty;
    • OPERATOR

      public static final RpcSchemaEntry OPERATOR
      Mappings:
      Namespace Name Mixin selector
      named OPERATOR Lnet/minecraft/server/dedicated/management/schema/RpcSchema;OPERATOR:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62365 Lnet/minecraft/class_11821;field_62365:Lnet/minecraft/class_11822;
      official r Latx;r:Laty;
    • INCOMING_IP_BAN

      public static final RpcSchemaEntry INCOMING_IP_BAN
      Mappings:
      Namespace Name Mixin selector
      named INCOMING_IP_BAN Lnet/minecraft/server/dedicated/management/schema/RpcSchema;INCOMING_IP_BAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62366 Lnet/minecraft/class_11821;field_62366:Lnet/minecraft/class_11822;
      official s Latx;s:Laty;
    • IP_BAN

      public static final RpcSchemaEntry IP_BAN
      Mappings:
      Namespace Name Mixin selector
      named IP_BAN Lnet/minecraft/server/dedicated/management/schema/RpcSchema;IP_BAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62367 Lnet/minecraft/class_11821;field_62367:Lnet/minecraft/class_11822;
      official t Latx;t:Laty;
    • USER_BAN

      public static final RpcSchemaEntry USER_BAN
      Mappings:
      Namespace Name Mixin selector
      named USER_BAN Lnet/minecraft/server/dedicated/management/schema/RpcSchema;USER_BAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary field_62368 Lnet/minecraft/class_11821;field_62368:Lnet/minecraft/class_11822;
      official u Latx;u:Laty;
  • Constructor Details

  • Method Details

    • registerEntry

      private static RpcSchemaEntry registerEntry(String reference, RpcSchema schema)
      Mappings:
      Namespace Name Mixin selector
      named registerEntry Lnet/minecraft/server/dedicated/management/schema/RpcSchema;registerEntry(Ljava/lang/String;Lnet/minecraft/server/dedicated/management/schema/RpcSchema;)Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;
      intermediary method_73719 Lnet/minecraft/class_11821;method_73719(Ljava/lang/String;Lnet/minecraft/class_11821;)Lnet/minecraft/class_11822;
      official b Latx;b(Ljava/lang/String;Latx;)Laty;
    • getRegisteredSchemas

      public static List<RpcSchemaEntry> getRegisteredSchemas()
      Mappings:
      Namespace Name Mixin selector
      named getRegisteredSchemas Lnet/minecraft/server/dedicated/management/schema/RpcSchema;getRegisteredSchemas()Ljava/util/List;
      intermediary method_73713 Lnet/minecraft/class_11821;method_73713()Ljava/util/List;
      official a Latx;a()Ljava/util/List;
    • ofReference

      public static RpcSchema ofReference(URI reference)
      Mappings:
      Namespace Name Mixin selector
      named ofReference Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofReference(Ljava/net/URI;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73717 Lnet/minecraft/class_11821;method_73717(Ljava/net/URI;)Lnet/minecraft/class_11821;
      official a Latx;a(Ljava/net/URI;)Latx;
    • ofLiteral

      public static RpcSchema ofLiteral(String literal)
      Mappings:
      Namespace Name Mixin selector
      named ofLiteral Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofLiteral(Ljava/lang/String;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73724 Lnet/minecraft/class_11821;method_73724(Ljava/lang/String;)Lnet/minecraft/class_11821;
      official a Latx;a(Ljava/lang/String;)Latx;
    • ofEnum

      public static <E extends Enum<E> & StringIdentifiable> RpcSchema ofEnum(Supplier<E[]> values)
      Mappings:
      Namespace Name Mixin selector
      named ofEnum Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofEnum(Ljava/util/function/Supplier;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73722 Lnet/minecraft/class_11821;method_73722(Ljava/util/function/Supplier;)Lnet/minecraft/class_11821;
      official a Latx;a(Ljava/util/function/Supplier;)Latx;
    • ofList

      public static RpcSchema ofList(List<String> values)
      Mappings:
      Namespace Name Mixin selector
      named ofList Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofList(Ljava/util/List;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73720 Lnet/minecraft/class_11821;method_73720(Ljava/util/List;)Lnet/minecraft/class_11821;
      official a Latx;a(Ljava/util/List;)Latx;
    • ofArray

      public static RpcSchema ofArray(RpcSchema rpcSchema)
      Mappings:
      Namespace Name Mixin selector
      named ofArray Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofArray(Lnet/minecraft/server/dedicated/management/schema/RpcSchema;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73714 Lnet/minecraft/class_11821;method_73714(Lnet/minecraft/class_11821;)Lnet/minecraft/class_11821;
      official a Latx;a(Latx;)Latx;
    • ofObject

      public static RpcSchema ofObject()
      Mappings:
      Namespace Name Mixin selector
      named ofObject Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofObject()Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73723 Lnet/minecraft/class_11821;method_73723()Lnet/minecraft/class_11821;
      official b Latx;b()Latx;
    • ofObjectWithProperties

      public static RpcSchema ofObjectWithProperties(Map<String,RpcSchema> itemSchemaMap)
      Mappings:
      Namespace Name Mixin selector
      named ofObjectWithProperties Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofObjectWithProperties(Ljava/util/Map;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73721 Lnet/minecraft/class_11821;method_73721(Ljava/util/Map;)Lnet/minecraft/class_11821;
      official a Latx;a(Ljava/util/Map;)Latx;
    • withProperty

      public RpcSchema withProperty(String reference, RpcSchema rpcSchema)
      Mappings:
      Namespace Name Mixin selector
      named withProperty Lnet/minecraft/server/dedicated/management/schema/RpcSchema;withProperty(Ljava/lang/String;Lnet/minecraft/server/dedicated/management/schema/RpcSchema;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73718 Lnet/minecraft/class_11821;method_73718(Ljava/lang/String;Lnet/minecraft/class_11821;)Lnet/minecraft/class_11821;
      official a Latx;a(Ljava/lang/String;Latx;)Latx;
    • asArray

      public RpcSchema asArray()
      Mappings:
      Namespace Name Mixin selector
      named asArray Lnet/minecraft/server/dedicated/management/schema/RpcSchema;asArray()Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73725 Lnet/minecraft/class_11821;method_73725()Lnet/minecraft/class_11821;
      official c Latx;c()Latx;
    • 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

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

      public Optional<Map<String,RpcSchema>> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • enumValues

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