Package net.minecraft.network.chat
Class ComponentSerialization.FuzzyCodec<T>
java.lang.Object
com.mojang.serialization.CompressorHolder
com.mojang.serialization.MapCodec<T>
net.minecraft.network.chat.ComponentSerialization.FuzzyCodec<T>
- All Implemented Interfaces:
com.mojang.serialization.Compressable
,com.mojang.serialization.Keyable
,com.mojang.serialization.MapDecoder<T>
,com.mojang.serialization.MapEncoder<T>
- Enclosing class:
ComponentSerialization
static class ComponentSerialization.FuzzyCodec<T>
extends com.mojang.serialization.MapCodec<T>
-
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
-
Method Summary
Modifier and TypeMethodDescription<S> com.mojang.serialization.DataResult
<T> decode
(com.mojang.serialization.DynamicOps<S> p_311662_, com.mojang.serialization.MapLike<S> p_310979_) <S> com.mojang.serialization.RecordBuilder
<S> encode
(T p_310202_, com.mojang.serialization.DynamicOps<S> p_312954_, com.mojang.serialization.RecordBuilder<S> p_312771_) <S> Stream
<S> keys
(com.mojang.serialization.DynamicOps<S> p_311118_) toString()
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, 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
-
codecs
-
encoderGetter
-
-
Constructor Details
-
FuzzyCodec
-
-
Method Details
-
decode
public <S> com.mojang.serialization.DataResult<T> decode(com.mojang.serialization.DynamicOps<S> p_311662_, com.mojang.serialization.MapLike<S> p_310979_) -
encode
public <S> com.mojang.serialization.RecordBuilder<S> encode(T p_310202_, com.mojang.serialization.DynamicOps<S> p_312954_, com.mojang.serialization.RecordBuilder<S> p_312771_) -
keys
- Specified by:
keys
in interfacecom.mojang.serialization.Keyable
- Specified by:
keys
in classcom.mojang.serialization.MapCodec<T>
-
toString
-