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/RpcSchemaintermediary net/minecraft/class_11821official aumnamed referenceintermediary comp_4693official xnamed typeintermediary comp_4694official ynamed itemsintermediary comp_4695official znamed propertiesintermediary comp_4696official Anamed enumValuesintermediary comp_4697official Bnamed codecintermediary comp_5123official C
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<T> The field for thecodecrecord component.static final com.mojang.serialization.Codec<? extends RpcSchema<?>> static final RpcSchemaEntry<Difficulty> The field for theenumValuesrecord component.static final RpcSchema<RpcDiscover.Document> static final RpcSchema<PermissionLevel> static final RpcSchemaEntry<GameMode> static final RpcSchema<GameRuleRpcDispatcher.GameRuleType> static final RpcSchemaEntry<IpBansRpcDispatcher.IncomingRpcIpBanData> static final RpcSchemaEntry<IpBansRpcDispatcher.IpBanData> The field for theitemsrecord component.static final RpcSchemaEntry<PlayersRpcDispatcher.RpcEntry> static final RpcSchemaEntry<RpcKickReason> static final RpcSchemaEntry<OperatorsRpcDispatcher.RpcEntry> static final RpcSchemaEntry<RpcPlayer> The field for thepropertiesrecord component.The field for thereferencerecord component.private static final List<RpcSchemaEntry<?>> static final RpcSchemaEntry<ServerRpcDispatcher.RpcStatus> static final RpcSchemaEntry<ServerRpcDispatcher.RpcSystemMessage> The field for thetyperecord component.static final RpcSchemaEntry<GameRuleRpcDispatcher.TypedRule> static final RpcSchemaEntry<GameRuleRpcDispatcher.UntypedRule> static final RpcSchemaEntry<PlayerBansRpcDispatcher.RpcEntry> static final RpcSchemaEntry<RpcDiscover.Info> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasArray()com.mojang.serialization.Codec<T> codec()Returns the value of thecodecrecord component.Returns the value of theenumValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.static List<RpcSchemaEntry<?>> final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.static <T> com.mojang.serialization.Codec<RpcSchema<T>> static <E extends Enum<E> & StringIdentifiable>
RpcSchema<E> method_75588(Supplier<E[]> supplier) static <E extends Enum<E> & StringIdentifiable>
RpcSchema<E> static <T> RpcSchema<T> static <T> RpcSchema<T> static <T> RpcSchema<T> ofObject(com.mojang.serialization.Codec<T> codec) private static <T> RpcSchema<T> ofObjectWithProperties(Map<String, RpcSchema<?>> itemSchemaMap, com.mojang.serialization.Codec<T> codec) static <T> RpcSchema<T> ofReference(URI reference, com.mojang.serialization.Codec<T> codec) Returns the value of thepropertiesrecord component.Returns the value of thereferencerecord component.private static <T> RpcSchemaEntry<T> registerEntry(String reference, RpcSchema<T> schema) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withProperty(String reference, RpcSchema<?> schema)
-
Field Details
-
reference
The field for thereferencerecord component. -
type
The field for thetyperecord component. -
items
The field for theitemsrecord component. -
properties
The field for thepropertiesrecord component. -
enumValues
The field for theenumValuesrecord component. -
codec
The field for thecodecrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/dedicated/management/schema/RpcSchema;CODEC:Lcom/mojang/serialization/Codec;intermediary field_62347Lnet/minecraft/class_11821;field_62347:Lcom/mojang/serialization/Codec;official aLaum;a:Lcom/mojang/serialization/Codec;
-
REGISTERED_SCHEMAS
- Mappings:
Namespace Name Mixin selector named REGISTERED_SCHEMASLnet/minecraft/server/dedicated/management/schema/RpcSchema;REGISTERED_SCHEMAS:Ljava/util/List;intermediary field_62346Lnet/minecraft/class_11821;field_62346:Ljava/util/List;official DLaum;D:Ljava/util/List;
-
BOOLEAN
- Mappings:
Namespace Name Mixin selector named BOOLEANLnet/minecraft/server/dedicated/management/schema/RpcSchema;BOOLEAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_62348Lnet/minecraft/class_11821;field_62348:Lnet/minecraft/class_11821;official bLaum;b:Laum;
-
INTEGER
- Mappings:
Namespace Name Mixin selector named INTEGERLnet/minecraft/server/dedicated/management/schema/RpcSchema;INTEGER:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_62349Lnet/minecraft/class_11821;field_62349:Lnet/minecraft/class_11821;official cLaum;c:Laum;
-
NUMBER
- Mappings:
Namespace Name Mixin selector named NUMBERLnet/minecraft/server/dedicated/management/schema/RpcSchema;NUMBER:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_62350Lnet/minecraft/class_11821;field_62350:Lnet/minecraft/class_11821;official dLaum;d:Laum;
-
STRING
- Mappings:
Namespace Name Mixin selector named STRINGLnet/minecraft/server/dedicated/management/schema/RpcSchema;STRING:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_62351Lnet/minecraft/class_11821;field_62351:Lnet/minecraft/class_11821;official eLaum;e:Laum;
-
PLAYER_ID
- Mappings:
Namespace Name Mixin selector named PLAYER_IDLnet/minecraft/server/dedicated/management/schema/RpcSchema;PLAYER_ID:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_62352Lnet/minecraft/class_11821;field_62352:Lnet/minecraft/class_11821;official fLaum;f:Laum;
-
field_63669
- Mappings:
Namespace Name Mixin selector named field_63669Lnet/minecraft/server/dedicated/management/schema/RpcSchema;field_63669:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_63669Lnet/minecraft/class_11821;field_63669:Lnet/minecraft/class_11821;official gLaum;g:Laum;
-
DIFFICULTY
- Mappings:
Namespace Name Mixin selector named DIFFICULTYLnet/minecraft/server/dedicated/management/schema/RpcSchema;DIFFICULTY:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62354Lnet/minecraft/class_11821;field_62354:Lnet/minecraft/class_11822;official hLaum;h:Laun;
-
GAME_MODE
- Mappings:
Namespace Name Mixin selector named GAME_MODELnet/minecraft/server/dedicated/management/schema/RpcSchema;GAME_MODE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62355Lnet/minecraft/class_11821;field_62355:Lnet/minecraft/class_11822;official iLaum;i:Laun;
-
field_63670
- Mappings:
Namespace Name Mixin selector named field_63670Lnet/minecraft/server/dedicated/management/schema/RpcSchema;field_63670:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_63670Lnet/minecraft/class_11821;field_63670:Lnet/minecraft/class_11821;official jLaum;j:Laum;
-
PLAYER
- Mappings:
Namespace Name Mixin selector named PLAYERLnet/minecraft/server/dedicated/management/schema/RpcSchema;PLAYER:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62356Lnet/minecraft/class_11821;field_62356:Lnet/minecraft/class_11822;official kLaum;k:Laun;
-
VERSION
- Mappings:
Namespace Name Mixin selector named VERSIONLnet/minecraft/server/dedicated/management/schema/RpcSchema;VERSION:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62357Lnet/minecraft/class_11821;field_62357:Lnet/minecraft/class_11822;official lLaum;l:Laun;
-
SERVER_STATE
- Mappings:
Namespace Name Mixin selector named SERVER_STATELnet/minecraft/server/dedicated/management/schema/RpcSchema;SERVER_STATE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62358Lnet/minecraft/class_11821;field_62358:Lnet/minecraft/class_11822;official mLaum;m:Laun;
-
GAME_RULE_TYPE
- Mappings:
Namespace Name Mixin selector named GAME_RULE_TYPELnet/minecraft/server/dedicated/management/schema/RpcSchema;GAME_RULE_TYPE:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_62359Lnet/minecraft/class_11821;field_62359:Lnet/minecraft/class_11821;official nLaum;n:Laum;
-
TYPED_GAME_RULE
- Mappings:
Namespace Name Mixin selector named TYPED_GAME_RULELnet/minecraft/server/dedicated/management/schema/RpcSchema;TYPED_GAME_RULE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62360Lnet/minecraft/class_11821;field_62360:Lnet/minecraft/class_11822;official oLaum;o:Laun;
-
UNTYPED_GAME_RULE
- Mappings:
Namespace Name Mixin selector named UNTYPED_GAME_RULELnet/minecraft/server/dedicated/management/schema/RpcSchema;UNTYPED_GAME_RULE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62361Lnet/minecraft/class_11821;field_62361:Lnet/minecraft/class_11822;official pLaum;p:Laun;
-
MESSAGE
- Mappings:
Namespace Name Mixin selector named MESSAGELnet/minecraft/server/dedicated/management/schema/RpcSchema;MESSAGE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62362Lnet/minecraft/class_11821;field_62362:Lnet/minecraft/class_11822;official qLaum;q:Laun;
-
SYSTEM_MESSAGE
- Mappings:
Namespace Name Mixin selector named SYSTEM_MESSAGELnet/minecraft/server/dedicated/management/schema/RpcSchema;SYSTEM_MESSAGE:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62363Lnet/minecraft/class_11821;field_62363:Lnet/minecraft/class_11822;official rLaum;r:Laun;
-
KICK_PLAYER
- Mappings:
Namespace Name Mixin selector named KICK_PLAYERLnet/minecraft/server/dedicated/management/schema/RpcSchema;KICK_PLAYER:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62364Lnet/minecraft/class_11821;field_62364:Lnet/minecraft/class_11822;official sLaum;s:Laun;
-
OPERATOR
- Mappings:
Namespace Name Mixin selector named OPERATORLnet/minecraft/server/dedicated/management/schema/RpcSchema;OPERATOR:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62365Lnet/minecraft/class_11821;field_62365:Lnet/minecraft/class_11822;official tLaum;t:Laun;
-
INCOMING_IP_BAN
- Mappings:
Namespace Name Mixin selector named INCOMING_IP_BANLnet/minecraft/server/dedicated/management/schema/RpcSchema;INCOMING_IP_BAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62366Lnet/minecraft/class_11821;field_62366:Lnet/minecraft/class_11822;official uLaum;u:Laun;
-
IP_BAN
- Mappings:
Namespace Name Mixin selector named IP_BANLnet/minecraft/server/dedicated/management/schema/RpcSchema;IP_BAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62367Lnet/minecraft/class_11821;field_62367:Lnet/minecraft/class_11822;official vLaum;v:Laun;
-
USER_BAN
- Mappings:
Namespace Name Mixin selector named USER_BANLnet/minecraft/server/dedicated/management/schema/RpcSchema;USER_BAN:Lnet/minecraft/server/dedicated/management/schema/RpcSchemaEntry;intermediary field_62368Lnet/minecraft/class_11821;field_62368:Lnet/minecraft/class_11822;official wLaum;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 aRpcSchemarecord class.- Parameters:
reference- the value for thereferencerecord componenttype- the value for thetyperecord componentitems- the value for theitemsrecord componentproperties- the value for thepropertiesrecord componentenumValues- the value for theenumValuesrecord componentcodec- the value for thecodecrecord component
-
-
Method Details
-
method_75584
- Mappings:
Namespace Name Mixin selector named method_75584Lnet/minecraft/server/dedicated/management/schema/RpcSchema;method_75584()Lcom/mojang/serialization/Codec;intermediary method_75584Lnet/minecraft/class_11821;method_75584()Lcom/mojang/serialization/Codec;official aLaum;a()Lcom/mojang/serialization/Codec;
-
method_75589
- Mappings:
Namespace Name Mixin selector named method_75589Lnet/minecraft/server/dedicated/management/schema/RpcSchema;method_75589()Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_75589Lnet/minecraft/class_11821;method_75589()Lnet/minecraft/class_11821;official bLaum;b()Laum;
-
registerEntry
- Mappings:
Namespace Name Mixin selector named registerEntryLnet/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_73719Lnet/minecraft/class_11821;method_73719(Ljava/lang/String;Lnet/minecraft/class_11821;)Lnet/minecraft/class_11822;official bLaum;b(Ljava/lang/String;Laum;)Laun;
-
getRegisteredSchemas
- Mappings:
Namespace Name Mixin selector named getRegisteredSchemasLnet/minecraft/server/dedicated/management/schema/RpcSchema;getRegisteredSchemas()Ljava/util/List;intermediary method_73713Lnet/minecraft/class_11821;method_73713()Ljava/util/List;official cLaum;c()Ljava/util/List;
-
ofReference
- Mappings:
Namespace Name Mixin selector named ofReferenceLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofReference(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73717Lnet/minecraft/class_11821;method_73717(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;a(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Laum;
-
ofLiteral
- Mappings:
Namespace Name Mixin selector named ofLiteralLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofLiteral(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73724Lnet/minecraft/class_11821;method_73724(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;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_75588Lnet/minecraft/server/dedicated/management/schema/RpcSchema;method_75588(Ljava/util/function/Supplier;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_75588Lnet/minecraft/class_11821;method_75588(Ljava/util/function/Supplier;)Lnet/minecraft/class_11821;official aLaum;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 ofEnumLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofEnum(Ljava/util/function/Supplier;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73722Lnet/minecraft/class_11821;method_73722(Ljava/util/function/Supplier;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;a(Ljava/util/function/Supplier;Lcom/mojang/serialization/Codec;)Laum;
-
ofList
- Mappings:
Namespace Name Mixin selector named ofListLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofList(Ljava/util/List;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73720Lnet/minecraft/class_11821;method_73720(Ljava/util/List;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;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 ofArrayLnet/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_73714Lnet/minecraft/class_11821;method_73714(Lnet/minecraft/class_11821;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;a(Laum;Lcom/mojang/serialization/Codec;)Laum;
-
ofObject
- Mappings:
Namespace Name Mixin selector named ofObjectLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofObject(Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73723Lnet/minecraft/class_11821;method_73723(Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;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 ofObjectWithPropertiesLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofObjectWithProperties(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73721Lnet/minecraft/class_11821;method_73721(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaum;a(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Laum;
-
withProperty
- Mappings:
Namespace Name Mixin selector named withPropertyLnet/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_73718Lnet/minecraft/class_11821;method_73718(Ljava/lang/String;Lnet/minecraft/class_11821;)Lnet/minecraft/class_11821;official aLaum;a(Ljava/lang/String;Laum;)Laum;
-
asArray
- Mappings:
Namespace Name Mixin selector named asArrayLnet/minecraft/server/dedicated/management/schema/RpcSchema;asArray()Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_73725Lnet/minecraft/class_11821;method_73725()Lnet/minecraft/class_11821;official dLaum;d()Laum;
-
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
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
enumValues
Returns the value of theenumValuesrecord component.- Returns:
- the value of the
enumValuesrecord component
-
codec
Returns the value of thecodecrecord component.- Returns:
- the value of the
codecrecord component
-