Class TextCodecs.FuzzyCodec<T>

java.lang.Object
com.mojang.serialization.CompressorHolder
com.mojang.serialization.MapCodec<T>
net.minecraft.text.TextCodecs.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:
TextCodecs

private static class TextCodecs.FuzzyCodec<T> extends com.mojang.serialization.MapCodec<T>
Mappings:
Namespace Name
named net/minecraft/text/TextCodecs$FuzzyCodec
intermediary net/minecraft/class_8824$class_8825
official xb$a
  • 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 Function<T,com.mojang.serialization.MapEncoder<? extends T>>
     
    private final List<com.mojang.serialization.MapCodec<? extends T>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FuzzyCodec(List<com.mojang.serialization.MapCodec<? extends T>> codecs, Function<T,com.mojang.serialization.MapEncoder<? extends T>> codecGetter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <S> com.mojang.serialization.DataResult<T>
    decode(com.mojang.serialization.DynamicOps<S> ops, com.mojang.serialization.MapLike<S> input)
     
    <S> com.mojang.serialization.RecordBuilder<S>
    encode(T input, com.mojang.serialization.DynamicOps<S> ops, com.mojang.serialization.RecordBuilder<S> prefix)
     
    <S> Stream<S>
    keys(com.mojang.serialization.DynamicOps<S> 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, 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

      private final List<com.mojang.serialization.MapCodec<? extends T>> codecs
      Mappings:
      Namespace Name Mixin selector
      named codecs Lnet/minecraft/text/TextCodecs$FuzzyCodec;codecs:Ljava/util/List;
      intermediary field_46599 Lnet/minecraft/class_8824$class_8825;field_46599:Ljava/util/List;
      official a Lxb$a;a:Ljava/util/List;
    • codecGetter

      private final Function<T,com.mojang.serialization.MapEncoder<? extends T>> codecGetter
      Mappings:
      Namespace Name Mixin selector
      named codecGetter Lnet/minecraft/text/TextCodecs$FuzzyCodec;codecGetter:Ljava/util/function/Function;
      intermediary field_46600 Lnet/minecraft/class_8824$class_8825;field_46600:Ljava/util/function/Function;
      official b Lxb$a;b:Ljava/util/function/Function;
  • Constructor Details

    • FuzzyCodec

      public FuzzyCodec(List<com.mojang.serialization.MapCodec<? extends T>> codecs, Function<T,com.mojang.serialization.MapEncoder<? extends T>> codecGetter)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/text/TextCodecs$FuzzyCodec;<init>(Ljava/util/List;Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_8824$class_8825;<init>(Ljava/util/List;Ljava/util/function/Function;)V
      official <init> Lxb$a;<init>(Ljava/util/List;Ljava/util/function/Function;)V
  • Method Details

    • decode

      public <S> com.mojang.serialization.DataResult<T> decode(com.mojang.serialization.DynamicOps<S> ops, com.mojang.serialization.MapLike<S> input)
      Mappings:
      Namespace Name Mixin selector
      named decode Lnet/minecraft/text/TextCodecs$FuzzyCodec;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
      intermediary decode Lnet/minecraft/class_8824$class_8825;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
      official decode Lxb$a;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
    • encode

      public <S> com.mojang.serialization.RecordBuilder<S> encode(T input, com.mojang.serialization.DynamicOps<S> ops, com.mojang.serialization.RecordBuilder<S> prefix)
      Mappings:
      Namespace Name Mixin selector
      named encode Lnet/minecraft/text/TextCodecs$FuzzyCodec;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
      intermediary encode Lnet/minecraft/class_8824$class_8825;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
      official encode Lxb$a;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
    • keys

      public <S> Stream<S> keys(com.mojang.serialization.DynamicOps<S> ops)
      Specified by:
      keys in interface com.mojang.serialization.Keyable
      Specified by:
      keys in class com.mojang.serialization.MapCodec<T>
      Mappings:
      Namespace Name Mixin selector
      named keys Lnet/minecraft/text/TextCodecs$FuzzyCodec;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
      intermediary keys Lnet/minecraft/class_8824$class_8825;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
      official keys Lxb$a;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
    • toString

      public String toString()
      Overrides:
      toString in class Object