Class Codecs.Recursive<T>

java.lang.Object
net.minecraft.util.dynamic.Codecs.Recursive<T>
All Implemented Interfaces:
com.mojang.serialization.Codec<T>, com.mojang.serialization.Decoder<T>, com.mojang.serialization.Encoder<T>
Enclosing class:
Codecs

private static class Codecs.Recursive<T> extends Object implements com.mojang.serialization.Codec<T>
Mappings:
Namespace Name
official arf$c
intermediary net/minecraft/class_5699$class_8741
named net/minecraft/util/dynamic/Codecs$Recursive
  • Nested Class Summary

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

    com.mojang.serialization.Codec.ResultFunction<A>

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

    com.mojang.serialization.Decoder.Boxed<A>, com.mojang.serialization.Decoder.Simple<A>, com.mojang.serialization.Decoder.Terminal<A>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Supplier<com.mojang.serialization.Codec<T>>
     

    Fields inherited from interface com.mojang.serialization.Codec

    BOOL, BYTE, BYTE_BUFFER, DOUBLE, EMPTY, FLOAT, INT, INT_STREAM, LONG, LONG_STREAM, PASSTHROUGH, SHORT, STRING
  • Constructor Summary

    Constructors
    Constructor
    Description
    Recursive(Function<com.mojang.serialization.Codec<T>,com.mojang.serialization.Codec<T>> codecFunction)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <S> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<T,S>>
    decode(com.mojang.serialization.DynamicOps<S> ops, S input)
     
    <S> com.mojang.serialization.DataResult<S>
    encode(T input, com.mojang.serialization.DynamicOps<S> ops, S prefix)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.mojang.serialization.Codec

    comapFlatMap, deprecated, dispatch, dispatch, dispatchMap, dispatchMap, dispatchStable, fieldOf, flatComapMap, flatXmap, listOf, mapResult, optionalFieldOf, optionalFieldOf, optionalFieldOf, optionalFieldOf, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, partialDispatch, promotePartial, stable, withLifecycle, xmap

    Methods inherited from interface com.mojang.serialization.Decoder

    boxed, decode, flatMap, map, parse, parse, simple, terminal

    Methods inherited from interface com.mojang.serialization.Encoder

    comap, encodeStart, flatComap
  • Field Details

    • supplier

      private final Supplier<com.mojang.serialization.Codec<T>> supplier
      Mappings:
      Namespace Name Mixin selector
      official a Larf$c;a:Ljava/util/function/Supplier;
      intermediary field_45716 Lnet/minecraft/class_5699$class_8741;field_45716:Ljava/util/function/Supplier;
      named supplier Lnet/minecraft/util/dynamic/Codecs$Recursive;supplier:Ljava/util/function/Supplier;
  • Constructor Details

    • Recursive

      Recursive(Function<com.mojang.serialization.Codec<T>,com.mojang.serialization.Codec<T>> codecFunction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Larf$c;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_5699$class_8741;<init>(Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/util/dynamic/Codecs$Recursive;<init>(Ljava/util/function/Function;)V
  • Method Details

    • decode

      public <S> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<T,S>> decode(com.mojang.serialization.DynamicOps<S> ops, S input)
      Specified by:
      decode in interface com.mojang.serialization.Decoder<T>
      Mappings:
      Namespace Name Mixin selector
      official decode Larf$c;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
      intermediary decode Lnet/minecraft/class_5699$class_8741;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
      named decode Lnet/minecraft/util/dynamic/Codecs$Recursive;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
    • encode

      public <S> com.mojang.serialization.DataResult<S> encode(T input, com.mojang.serialization.DynamicOps<S> ops, S prefix)
      Specified by:
      encode in interface com.mojang.serialization.Encoder<T>
      Mappings:
      Namespace Name Mixin selector
      official encode Larf$c;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
      intermediary encode Lnet/minecraft/class_5699$class_8741;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
      named encode Lnet/minecraft/util/dynamic/Codecs$Recursive;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
    • toString

      public String toString()
      Overrides:
      toString in class Object