Class Codecs.ContextRetrievalCodec

java.lang.Object
com.mojang.serialization.CompressorHolder
com.mojang.serialization.MapCodec<E>
net.minecraft.util.dynamic.Codecs.ContextRetrievalCodec
All Implemented Interfaces:
com.mojang.serialization.Compressable, com.mojang.serialization.Keyable, com.mojang.serialization.MapDecoder<E>, com.mojang.serialization.MapEncoder<E>
Enclosing class:
Codecs

class Codecs.ContextRetrievalCodec extends com.mojang.serialization.MapCodec<E>
Mappings:
Namespace Name
official aiv$a
intermediary net/minecraft/class_5699$class_6866
named net/minecraft/util/dynamic/Codecs$ContextRetrievalCodec
  • 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>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    • ContextRetrievalCodec

      ContextRetrievalCodec()
      Mappings:
      Namespace Name Mixin selector
      official <init> Laiv$a;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_5699$class_6866;<init>(Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/util/dynamic/Codecs$ContextRetrievalCodec;<init>(Ljava/util/function/Function;)V
  • Method Details

    • encode

      public <T> com.mojang.serialization.RecordBuilder<T> encode(E input, com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.RecordBuilder<T> prefix)
      Mappings:
      Namespace Name Mixin selector
      official encode Laiv$a;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
      intermediary encode Lnet/minecraft/class_5699$class_6866;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
      named encode Lnet/minecraft/util/dynamic/Codecs$ContextRetrievalCodec;encode(Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/RecordBuilder;)Lcom/mojang/serialization/RecordBuilder;
    • decode

      public <T> com.mojang.serialization.DataResult<E> decode(com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.MapLike<T> input)
      Mappings:
      Namespace Name Mixin selector
      official decode Laiv$a;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
      intermediary decode Lnet/minecraft/class_5699$class_6866;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
      named decode Lnet/minecraft/util/dynamic/Codecs$ContextRetrievalCodec;decode(Lcom/mojang/serialization/DynamicOps;Lcom/mojang/serialization/MapLike;)Lcom/mojang/serialization/DataResult;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • keys

      public <T> Stream<T> keys(com.mojang.serialization.DynamicOps<T> ops)
      Specified by:
      keys in interface com.mojang.serialization.Keyable
      Specified by:
      keys in class com.mojang.serialization.MapCodec<E>
      Mappings:
      Namespace Name Mixin selector
      official keys Laiv$a;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
      intermediary keys Lnet/minecraft/class_5699$class_6866;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;
      named keys Lnet/minecraft/util/dynamic/Codecs$ContextRetrievalCodec;keys(Lcom/mojang/serialization/DynamicOps;)Ljava/util/stream/Stream;