Record Class RpcSchema<T>

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

public record RpcSchema<T>(Optional<URI> reference, List<String> type, Optional<RpcSchema<?>> items, Map<String,RpcSchema<?>> properties, List<String> enumValues, com.mojang.serialization.Codec<T> codec) extends Record
Mappings:
Namespace Name
named net/minecraft/server/dedicated/management/schema/RpcSchema
intermediary net/minecraft/class_11821
official aum
named reference
intermediary comp_4693
official x
named type
intermediary comp_4694
official y
named items
intermediary comp_4695
official z
named properties
intermediary comp_4696
official A
named enumValues
intermediary comp_4697
official B
named codec
intermediary comp_5123
official C
  • Field Details

    • reference

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

      private final List<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 Map<String,RpcSchema<?>> properties
      The field for the properties record component.
    • enumValues

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

      private final com.mojang.serialization.Codec<T> codec
      The field for the codec record component.
    • CODEC

      public static final com.mojang.serialization.Codec<? extends 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 Laum;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 D Laum;D:Ljava/util/List;
    • BOOLEAN

      public static final RpcSchema<Boolean> 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 Laum;b:Laum;
    • INTEGER

      public static final RpcSchema<Integer> 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 Laum;c:Laum;
    • NUMBER

      public static final RpcSchema<Float> 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 Laum;d:Laum;
    • STRING

      public static final RpcSchema<String> 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 Laum;e:Laum;
    • PLAYER_ID

      public static final RpcSchema<UUID> 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 Laum;f:Laum;
    • field_63669

      public static final RpcSchema<RpcDiscover.Document> field_63669
      Mappings:
      Namespace Name Mixin selector
      named field_63669 Lnet/minecraft/server/dedicated/management/schema/RpcSchema;field_63669:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_63669 Lnet/minecraft/class_11821;field_63669:Lnet/minecraft/class_11821;
      official g Laum;g:Laum;
    • DIFFICULTY

      public static final RpcSchemaEntry<Difficulty> 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 h Laum;h:Laun;
    • GAME_MODE

      public static final RpcSchemaEntry<GameMode> 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 i Laum;i:Laun;
    • field_63670

      public static final RpcSchema<PermissionLevel> field_63670
      Mappings:
      Namespace Name Mixin selector
      named field_63670 Lnet/minecraft/server/dedicated/management/schema/RpcSchema;field_63670:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary field_63670 Lnet/minecraft/class_11821;field_63670:Lnet/minecraft/class_11821;
      official j Laum;j:Laum;
    • PLAYER

      public static final RpcSchemaEntry<RpcPlayer> 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 k Laum;k:Laun;
    • VERSION

      public static final RpcSchemaEntry<RpcDiscover.Info> 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 l Laum;l:Laun;
    • SERVER_STATE

      public static final RpcSchemaEntry<ServerRpcDispatcher.RpcStatus> 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 m Laum;m:Laun;
    • GAME_RULE_TYPE

      public static final RpcSchema<GameRuleRpcDispatcher.GameRuleType> 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 n Laum;n:Laum;
    • TYPED_GAME_RULE

      public static final RpcSchemaEntry<GameRuleRpcDispatcher.TypedRule> 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 o Laum;o:Laun;
    • UNTYPED_GAME_RULE

      public static final RpcSchemaEntry<GameRuleRpcDispatcher.UntypedRule> 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 p Laum;p:Laun;
    • MESSAGE

      public static final RpcSchemaEntry<RpcKickReason> 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 q Laum;q:Laun;
    • SYSTEM_MESSAGE

      public static final RpcSchemaEntry<ServerRpcDispatcher.RpcSystemMessage> 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 r Laum;r:Laun;
    • KICK_PLAYER

      public static final RpcSchemaEntry<PlayersRpcDispatcher.RpcEntry> 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 s Laum;s:Laun;
    • OPERATOR

      public static final RpcSchemaEntry<OperatorsRpcDispatcher.RpcEntry> 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 t Laum;t:Laun;
    • INCOMING_IP_BAN

      public static final RpcSchemaEntry<IpBansRpcDispatcher.IncomingRpcIpBanData> 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 u Laum;u:Laun;
    • IP_BAN

      public static final RpcSchemaEntry<IpBansRpcDispatcher.IpBanData> 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 v Laum;v:Laun;
    • USER_BAN

      public static final RpcSchemaEntry<PlayerBansRpcDispatcher.RpcEntry> 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 w Laum;w:Laun;
  • Constructor Details

    • RpcSchema

      public RpcSchema(Optional<URI> reference, List<String> type, Optional<RpcSchema<?>> items, Map<String,RpcSchema<?>> properties, List<String> enumValues, com.mojang.serialization.Codec<T> codec)
      Creates an instance of a RpcSchema record class.
      Parameters:
      reference - the value for the reference record component
      type - the value for the type record component
      items - the value for the items record component
      properties - the value for the properties record component
      enumValues - the value for the enumValues record component
      codec - the value for the codec record component
  • Method Details

    • method_75584

      public static <T> com.mojang.serialization.Codec<RpcSchema<T>> method_75584()
      Mappings:
      Namespace Name Mixin selector
      named method_75584 Lnet/minecraft/server/dedicated/management/schema/RpcSchema;method_75584()Lcom/mojang/serialization/Codec;
      intermediary method_75584 Lnet/minecraft/class_11821;method_75584()Lcom/mojang/serialization/Codec;
      official a Laum;a()Lcom/mojang/serialization/Codec;
    • method_75589

      public RpcSchema<T> method_75589()
      Mappings:
      Namespace Name Mixin selector
      named method_75589 Lnet/minecraft/server/dedicated/management/schema/RpcSchema;method_75589()Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_75589 Lnet/minecraft/class_11821;method_75589()Lnet/minecraft/class_11821;
      official b Laum;b()Laum;
    • registerEntry

      private static <T> RpcSchemaEntry<T> registerEntry(String reference, RpcSchema<T> 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 Laum;b(Ljava/lang/String;Laum;)Laun;
    • 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 c Laum;c()Ljava/util/List;
    • ofReference

      public static <T> RpcSchema<T> ofReference(URI reference, com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named ofReference Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofReference(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73717 Lnet/minecraft/class_11821;method_73717(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;
      official a Laum;a(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Laum;
    • ofLiteral

      public static <T> RpcSchema<T> ofLiteral(String literal, com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named ofLiteral Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofLiteral(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73724 Lnet/minecraft/class_11821;method_73724(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;
      official a Laum;a(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Laum;
    • method_75588

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

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

      public static <T> RpcSchema<T> ofList(List<String> values, com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named ofList Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofList(Ljava/util/List;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73720 Lnet/minecraft/class_11821;method_73720(Ljava/util/List;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;
      official a Laum;a(Ljava/util/List;Lcom/mojang/serialization/Codec;)Laum;
    • ofArray

      public static <T> RpcSchema<List<T>> ofArray(RpcSchema<?> itemSchema, com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named ofArray Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofArray(Lnet/minecraft/server/dedicated/management/schema/RpcSchema;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73714 Lnet/minecraft/class_11821;method_73714(Lnet/minecraft/class_11821;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;
      official a Laum;a(Laum;Lcom/mojang/serialization/Codec;)Laum;
    • ofObject

      public static <T> RpcSchema<T> ofObject(com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named ofObject Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofObject(Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73723 Lnet/minecraft/class_11821;method_73723(Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;
      official a Laum;a(Lcom/mojang/serialization/Codec;)Laum;
    • ofObjectWithProperties

      private static <T> RpcSchema<T> ofObjectWithProperties(Map<String,RpcSchema<?>> itemSchemaMap, com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      named ofObjectWithProperties Lnet/minecraft/server/dedicated/management/schema/RpcSchema;ofObjectWithProperties(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;
      intermediary method_73721 Lnet/minecraft/class_11821;method_73721(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;
      official a Laum;a(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Laum;
    • withProperty

      public RpcSchema<T> withProperty(String reference, RpcSchema<?> schema)
      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 Laum;a(Ljava/lang/String;Laum;)Laum;
    • asArray

      public RpcSchema<List<T>> 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 d Laum;d()Laum;
    • 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 List<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 Map<String,RpcSchema<?>> properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • enumValues

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

      public com.mojang.serialization.Codec<T> codec()
      Returns the value of the codec record component.
      Returns:
      the value of the codec record component