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
official vh$a
intermediary net/minecraft/class_8824$class_8825
named net/minecraft/text/TextCodecs$FuzzyCodec
  • 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

    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, 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
      official a Lvh$a;a:Ljava/util/List;
      intermediary field_46599 Lnet/minecraft/class_8824$class_8825;field_46599:Ljava/util/List;
      named codecs Lnet/minecraft/text/TextCodecs$FuzzyCodec;codecs:Ljava/util/List;
    • codecGetter

      private final Function<T,com.mojang.serialization.MapEncoder<? extends T>> codecGetter
      Mappings:
      Namespace Name Mixin selector
      official b Lvh$a;b:Ljava/util/function/Function;
      intermediary field_46600 Lnet/minecraft/class_8824$class_8825;field_46600:Ljava/util/function/Function;
      named codecGetter Lnet/minecraft/text/TextCodecs$FuzzyCodec;codecGetter: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
      official <init> Lvh$a;<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
      named <init> Lnet/minecraft/text/TextCodecs$FuzzyCodec;<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
      official decode Lvh$a;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;
      named decode Lnet/minecraft/text/TextCodecs$FuzzyCodec;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
      official encode Lvh$a;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;
      named encode Lnet/minecraft/text/TextCodecs$FuzzyCodec;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
      official keys Lvh$a;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;
      named keys Lnet/minecraft/text/TextCodecs$FuzzyCodec;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
    • toString

      public String toString()
      Overrides:
      toString in class Object