Class CodecCache

java.lang.Object
net.minecraft.util.dynamic.CodecCache

public class CodecCache extends Object
Mappings:
Namespace Name
named net/minecraft/util/dynamic/CodecCache
intermediary net/minecraft/class_9684
official azl
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final LoadingCache<CodecCache.Key<?,?>,com.mojang.serialization.DataResult<?>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CodecCache(int size)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <A> com.mojang.serialization.Codec<A>
    wrap(com.mojang.serialization.Codec<A> codec)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cache

      final LoadingCache<CodecCache.Key<?,?>,com.mojang.serialization.DataResult<?>> cache
      Mappings:
      Namespace Name Mixin selector
      named cache Lnet/minecraft/util/dynamic/CodecCache;cache:Lcom/google/common/cache/LoadingCache;
      intermediary field_51504 Lnet/minecraft/class_9684;field_51504:Lcom/google/common/cache/LoadingCache;
      official a Lazl;a:Lcom/google/common/cache/LoadingCache;
  • Constructor Details

    • CodecCache

      public CodecCache(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/dynamic/CodecCache;<init>(I)V
      intermediary <init> Lnet/minecraft/class_9684;<init>(I)V
      official <init> Lazl;<init>(I)V
  • Method Details

    • wrap

      public <A> com.mojang.serialization.Codec<A> wrap(com.mojang.serialization.Codec<A> codec)
      Mappings:
      Namespace Name Mixin selector
      named wrap Lnet/minecraft/util/dynamic/CodecCache;wrap(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_59856 Lnet/minecraft/class_9684;method_59856(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Lazl;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;