Class ComponentSerialization.StrictEither<T>

java.lang.Object
com.mojang.serialization.CompressorHolder
com.mojang.serialization.MapCodec<T>
net.minecraft.network.chat.ComponentSerialization.StrictEither<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.StrictEither<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

    Fields
    Modifier and Type
    Field
    Description
    private final com.mojang.serialization.MapCodec<T>
     
    private final com.mojang.serialization.MapCodec<T>
     
    private final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StrictEither(String p_307439_, com.mojang.serialization.MapCodec<T> p_307644_, com.mojang.serialization.MapCodec<T> p_307415_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <O> com.mojang.serialization.DataResult<T>
    decode(com.mojang.serialization.DynamicOps<O> p_307279_, com.mojang.serialization.MapLike<O> p_307655_)
     
    <O> com.mojang.serialization.RecordBuilder<O>
    encode(T p_307352_, com.mojang.serialization.DynamicOps<O> p_307510_, com.mojang.serialization.RecordBuilder<O> p_307297_)
     
    <T1> Stream<T1>
    keys(com.mojang.serialization.DynamicOps<T1> p_307616_)
     

    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

    • typeFieldName

      private final String typeFieldName
    • typed

      private final com.mojang.serialization.MapCodec<T> typed
    • fuzzy

      private final com.mojang.serialization.MapCodec<T> fuzzy
  • Constructor Details

    • StrictEither

      public StrictEither(String p_307439_, com.mojang.serialization.MapCodec<T> p_307644_, com.mojang.serialization.MapCodec<T> p_307415_)
  • Method Details

    • decode

      public <O> com.mojang.serialization.DataResult<T> decode(com.mojang.serialization.DynamicOps<O> p_307279_, com.mojang.serialization.MapLike<O> p_307655_)
    • encode

      public <O> com.mojang.serialization.RecordBuilder<O> encode(T p_307352_, com.mojang.serialization.DynamicOps<O> p_307510_, com.mojang.serialization.RecordBuilder<O> p_307297_)
    • keys

      public <T1> Stream<T1> keys(com.mojang.serialization.DynamicOps<T1> p_307616_)
      Specified by:
      keys in interface com.mojang.serialization.Keyable
      Specified by:
      keys in class com.mojang.serialization.MapCodec<T>