Class SingleKeyCache<K,V>

java.lang.Object
net.minecraft.util.SingleKeyCache<K,V>

public class SingleKeyCache<K,V> extends Object
  • Field Details

    • computeValue

      private final Function<K,V> computeValue
    • cacheKey

      @Nullable private K cacheKey
    • cachedValue

      @Nullable private V cachedValue
  • Constructor Details

    • SingleKeyCache

      public SingleKeyCache(Function<K,V> p_270132_)
  • Method Details

    • getValue

      public V getValue(K p_270953_)