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 auinamed referenceintermediary comp_4693official ynamed typeintermediary comp_4694official znamed itemsintermediary comp_4695official Anamed propertiesintermediary comp_4696official Bnamed enumValuesintermediary comp_4697official Cnamed codecintermediary comp_5123official D
-
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> static final RpcSchema<RpcDiscover.Document> The field for theenumValuesrecord component.static final RpcSchemaEntry<GameMode> static final RpcSchema<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 RpcSchema<PermissionLevel> 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.class_12254<?>> static final RpcSchemaEntry<GameRuleRpcDispatcher.class_12254<?>> 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.copy()Returns the value of theenumValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.static <T> com.mojang.serialization.Codec<RpcSchema<T>> getCodec()static List<RpcSchemaEntry<?>> final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.static <T> RpcSchema<T> method_76046(List<String> list, com.mojang.serialization.Codec<T> codec) static <E extends Enum<E> & StringIdentifiable>
RpcSchema<E> 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 aLaui;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 ELaui;E: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 bLaui;b:Laui;
-
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 cLaui;c:Laui;
-
field_64087
- Mappings:
Namespace Name Mixin selector named field_64087Lnet/minecraft/server/dedicated/management/schema/RpcSchema;field_64087:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_64087Lnet/minecraft/class_11821;field_64087:Lnet/minecraft/class_11821;official dLaui;d:Laui;
-
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 eLaui;e:Laui;
-
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 fLaui;f:Laui;
-
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 gLaui;g:Laui;
-
DOCUMENT
- Mappings:
Namespace Name Mixin selector named DOCUMENTLnet/minecraft/server/dedicated/management/schema/RpcSchema;DOCUMENT:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_63669Lnet/minecraft/class_11821;field_63669:Lnet/minecraft/class_11821;official hLaui;h:Laui;
-
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 iLaui;i:Lauj;
-
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 jLaui;j:Lauj;
-
PERMISSION_LEVEL
- Mappings:
Namespace Name Mixin selector named PERMISSION_LEVELLnet/minecraft/server/dedicated/management/schema/RpcSchema;PERMISSION_LEVEL:Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary field_63670Lnet/minecraft/class_11821;field_63670:Lnet/minecraft/class_11821;official kLaui;k:Laui;
-
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 lLaui;l:Lauj;
-
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 mLaui;m:Lauj;
-
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 nLaui;n:Lauj;
-
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 oLaui;o:Laui;
-
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 pLaui;p:Lauj;
-
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 qLaui;q:Lauj;
-
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 rLaui;r:Lauj;
-
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 sLaui;s:Lauj;
-
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 tLaui;t:Lauj;
-
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 uLaui;u:Lauj;
-
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 vLaui;v:Lauj;
-
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 wLaui;w:Lauj;
-
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 xLaui;x:Lauj;
-
-
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
-
getCodec
- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/server/dedicated/management/schema/RpcSchema;getCodec()Lcom/mojang/serialization/Codec;intermediary method_75584Lnet/minecraft/class_11821;method_75584()Lcom/mojang/serialization/Codec;official aLaui;a()Lcom/mojang/serialization/Codec;
-
copy
- Mappings:
Namespace Name Mixin selector named copyLnet/minecraft/server/dedicated/management/schema/RpcSchema;copy()Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_75589Lnet/minecraft/class_11821;method_75589()Lnet/minecraft/class_11821;official bLaui;b()Laui;
-
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 bLaui;b(Ljava/lang/String;Laui;)Lauj;
-
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 cLaui;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 aLaui;a(Ljava/net/URI;Lcom/mojang/serialization/Codec;)Laui;
-
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 aLaui;a(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Laui;
-
method_76046
public static <T> RpcSchema<T> method_76046(List<String> list, com.mojang.serialization.Codec<T> codec) - Mappings:
Namespace Name Mixin selector named method_76046Lnet/minecraft/server/dedicated/management/schema/RpcSchema;method_76046(Ljava/util/List;Lcom/mojang/serialization/Codec;)Lnet/minecraft/server/dedicated/management/schema/RpcSchema;intermediary method_76046Lnet/minecraft/class_11821;method_76046(Ljava/util/List;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_11821;official aLaui;a(Ljava/util/List;Lcom/mojang/serialization/Codec;)Laui;
-
ofEnum
public static <E extends Enum<E> & StringIdentifiable> RpcSchema<E> ofEnum(Supplier<E[]> enumValues) - Mappings:
Namespace Name Mixin selector named ofEnumLnet/minecraft/server/dedicated/management/schema/RpcSchema;ofEnum(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 aLaui;a(Ljava/util/function/Supplier;)Laui;
-
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 aLaui;a(Ljava/util/function/Supplier;Lcom/mojang/serialization/Codec;)Laui;
-
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 bLaui;b(Ljava/util/List;Lcom/mojang/serialization/Codec;)Laui;
-
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 aLaui;a(Laui;Lcom/mojang/serialization/Codec;)Laui;
-
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 aLaui;a(Lcom/mojang/serialization/Codec;)Laui;
-
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 aLaui;a(Ljava/util/Map;Lcom/mojang/serialization/Codec;)Laui;
-
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 aLaui;a(Ljava/lang/String;Laui;)Laui;
-
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 dLaui;d()Laui;
-
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
-