Class DefaultedRegistry<K,​V>

java.lang.Object
net.minecraft.util.registry.MutableRegistry<K,​V>
net.minecraft.util.registry.DefaultedRegistry<K,​V>
All Implemented Interfaces:
Iterable<V>, Registry<K,​V>

public class DefaultedRegistry<K,​V>
extends MutableRegistry<K,​V>
Mappings:
Namespace Name
official cp
intermediary net/minecraft/class_1382
named net/minecraft/util/registry/DefaultedRegistry
  • Field Details

    • defaultValue

      private final V defaultValue
      Mappings:
      Namespace Name Mixin selector
      official a Lcp;a:Ljava/lang/Object;
      intermediary field_5797 Lnet/minecraft/class_1382;field_5797:Ljava/lang/Object;
      named defaultValue Lnet/minecraft/util/registry/DefaultedRegistry;defaultValue:Ljava/lang/Object;
  • Constructor Details

    • DefaultedRegistry

      public DefaultedRegistry​(V defaultValue)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcp;<init>(Ljava/lang/Object;)V
      intermediary <init> Lnet/minecraft/class_1382;<init>(Ljava/lang/Object;)V
      named <init> Lnet/minecraft/util/registry/DefaultedRegistry;<init>(Ljava/lang/Object;)V
  • Method Details

    • get

      public V get​(K key)
      Specified by:
      get in interface Registry<K,​V>
      Overrides:
      get in class MutableRegistry<K,​V>
      Mappings:
      Namespace Name Mixin selector
      official a Ldb;a(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_4964 Lnet/minecraft/class_1397;method_4964(Ljava/lang/Object;)Ljava/lang/Object;
      named get Lnet/minecraft/util/registry/Registry;get(Ljava/lang/Object;)Ljava/lang/Object;