Package net.minecraft.text
Class TextCodecs.DispatchingCodec<T>
java.lang.Object
com.mojang.serialization.CompressorHolder
com.mojang.serialization.MapCodec<T>
net.minecraft.text.TextCodecs.DispatchingCodec<T>
- All Implemented Interfaces:
com.mojang.serialization.Compressable
,com.mojang.serialization.Keyable
,com.mojang.serialization.MapDecoder<T>
,com.mojang.serialization.MapEncoder<T>
- Enclosing class:
TextCodecs
private static class TextCodecs.DispatchingCodec<T>
extends com.mojang.serialization.MapCodec<T>
- Mappings:
Namespace Name named net/minecraft/text/TextCodecs$DispatchingCodec
intermediary net/minecraft/class_8824$class_8912
official xb$b
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mojang.serialization.MapCodec
com.mojang.serialization.MapCodec.MapCodecCodec<A>, com.mojang.serialization.MapCodec.ResultFunction<A>
Nested classes/interfaces inherited from interface com.mojang.serialization.MapDecoder
com.mojang.serialization.MapDecoder.Implementation<A>
Nested classes/interfaces inherited from interface com.mojang.serialization.MapEncoder
com.mojang.serialization.MapEncoder.Implementation<A>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDispatchingCodec
(String dispatchingKey, com.mojang.serialization.MapCodec<T> withKeyCodec, com.mojang.serialization.MapCodec<T> withoutKeyCodec) -
Method Summary
Modifier and TypeMethodDescription<O> com.mojang.serialization.DataResult
<T> decode
(com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.MapLike<O> input) <O> com.mojang.serialization.RecordBuilder
<O> encode
(T input, com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.RecordBuilder<O> prefix) <T1> Stream
<T1> keys
(com.mojang.serialization.DynamicOps<T1> ops) Methods inherited from class com.mojang.serialization.MapCodec
assumeMapUnsafe, codec, dependent, deprecated, fieldOf, flatXmap, forGetter, mapResult, of, of, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, recursive, setPartial, stable, unit, unit, validate, withLifecycle, xmap
Methods inherited from class com.mojang.serialization.CompressorHolder
compressor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.serialization.MapDecoder
ap, compressedDecode, compressor, decoder, flatMap, map
Methods inherited from interface com.mojang.serialization.MapEncoder
comap, compressedBuilder, compressor, encoder, flatComap
-
Field Details
-
dispatchingKey
- Mappings:
Namespace Name Mixin selector named dispatchingKey
Lnet/minecraft/text/TextCodecs$DispatchingCodec;dispatchingKey:Ljava/lang/String;
intermediary field_46914
Lnet/minecraft/class_8824$class_8912;field_46914:Ljava/lang/String;
official a
Lxb$b;a:Ljava/lang/String;
-
withKeyCodec
- Mappings:
Namespace Name Mixin selector named withKeyCodec
Lnet/minecraft/text/TextCodecs$DispatchingCodec;withKeyCodec:Lcom/mojang/serialization/MapCodec;
intermediary field_46915
Lnet/minecraft/class_8824$class_8912;field_46915:Lcom/mojang/serialization/MapCodec;
official b
Lxb$b;b:Lcom/mojang/serialization/MapCodec;
-
withoutKeyCodec
- Mappings:
Namespace Name Mixin selector named withoutKeyCodec
Lnet/minecraft/text/TextCodecs$DispatchingCodec;withoutKeyCodec:Lcom/mojang/serialization/MapCodec;
intermediary field_46916
Lnet/minecraft/class_8824$class_8912;field_46916:Lcom/mojang/serialization/MapCodec;
official c
Lxb$b;c:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DispatchingCodec
public DispatchingCodec(String dispatchingKey, com.mojang.serialization.MapCodec<T> withKeyCodec, com.mojang.serialization.MapCodec<T> withoutKeyCodec) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/text/TextCodecs$DispatchingCodec;<init>(Ljava/lang/String;Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/MapCodec;)V
intermediary <init>
Lnet/minecraft/class_8824$class_8912;<init>(Ljava/lang/String;Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/MapCodec;)V
official <init>
Lxb$b;<init>(Ljava/lang/String;Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/MapCodec;)V
-
-
Method Details
-
decode
public <O> com.mojang.serialization.DataResult<T> decode(com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.MapLike<O> input) - Mappings:
Namespace Name Mixin selector named decode
Lnet/minecraft/text/TextCodecs$DispatchingCodec;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
intermediary decode
Lnet/minecraft/class_8824$class_8912;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
official decode
Lxb$b;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
-
encode
public <O> com.mojang.serialization.RecordBuilder<O> encode(T input, com.mojang.serialization.DynamicOps<O> ops, com.mojang.serialization.RecordBuilder<O> prefix) - Mappings:
Namespace Name Mixin selector named encode
Lnet/minecraft/text/TextCodecs$DispatchingCodec;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
intermediary encode
Lnet/minecraft/class_8824$class_8912;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
official encode
Lxb$b;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
-
keys
- Specified by:
keys
in interfacecom.mojang.serialization.Keyable
- Specified by:
keys
in classcom.mojang.serialization.MapCodec<T>
- Mappings:
Namespace Name Mixin selector named keys
Lnet/minecraft/text/TextCodecs$DispatchingCodec;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
intermediary keys
Lnet/minecraft/class_8824$class_8912;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
official keys
Lxb$b;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
-