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 extends Object>, com.mojang.serialization.MapCodec.ResultFunction<A extends Object>

    Nested classes/interfaces inherited from interface com.mojang.serialization.MapDecoder

    com.mojang.serialization.MapDecoder.Implementation<A extends Object>

    Nested classes/interfaces inherited from interface com.mojang.serialization.MapEncoder

    com.mojang.serialization.MapEncoder.Implementation<A extends Object>
  • 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_310206_, com.mojang.serialization.MapCodec<T> p_312028_, com.mojang.serialization.MapCodec<T> p_312603_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <O> com.mojang.serialization.DataResult<T>
    decode(com.mojang.serialization.DynamicOps<O> p_310941_, com.mojang.serialization.MapLike<O> p_311041_)
     
    <O> com.mojang.serialization.RecordBuilder<O>
    encode(T p_310960_, com.mojang.serialization.DynamicOps<O> p_310726_, com.mojang.serialization.RecordBuilder<O> p_310170_)
     
    <T1> Stream<T1>
    keys(com.mojang.serialization.DynamicOps<T1> p_310134_)
     

    Methods inherited from class com.mojang.serialization.MapCodec

    codec, dependent, deprecated, fieldOf, flatXmap, forGetter, mapResult, of, of, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, setPartial, stable, unit, unit, 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_310206_, com.mojang.serialization.MapCodec<T> p_312028_, com.mojang.serialization.MapCodec<T> p_312603_)
  • Method Details

    • decode

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

      public <O> com.mojang.serialization.RecordBuilder<O> encode(T p_310960_, com.mojang.serialization.DynamicOps<O> p_310726_, com.mojang.serialization.RecordBuilder<O> p_310170_)
    • keys

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