Class SimpleRegistry<V>

java.lang.Object
net.minecraft.util.registry.SimpleRegistry<V>
All Implemented Interfaces:
net.minecraft.util.collection.ObjectIdIterable<T>, Registry<V>
Direct Known Subclasses:
BiDefaultedRegistry

public class SimpleRegistry<V> extends Object implements Registry<V>
Mappings:
Namespace Name
official ey
intermediary net/minecraft/class_1943
named net/minecraft/util/registry/SimpleRegistry
  • Field Details

    • field_21312

      protected static final Logger field_21312
      Mappings:
      Namespace Name Mixin selector
      official a Ley;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_21312 Lnet/minecraft/class_1943;field_21312:Lorg/apache/logging/log4j/Logger;
      named field_21312 Lnet/minecraft/util/registry/SimpleRegistry;field_21312:Lorg/apache/logging/log4j/Logger;
    • field_13718

      protected final class_2929<V> field_13718
      Mappings:
      Namespace Name Mixin selector
      official b Ley;b:Lxg;
      intermediary field_13718 Lnet/minecraft/class_1943;field_13718:Lnet/minecraft/class_2929;
      named field_13718 Lnet/minecraft/util/registry/SimpleRegistry;field_13718:Lnet/minecraft/class_2929;
    • field_21313

      protected final BiMap<Identifier,V> field_21313
      Mappings:
      Namespace Name Mixin selector
      official c Ley;c:Lcom/google/common/collect/BiMap;
      intermediary field_21313 Lnet/minecraft/class_1943;field_21313:Lcom/google/common/collect/BiMap;
      named field_21313 Lnet/minecraft/util/registry/SimpleRegistry;field_21313:Lcom/google/common/collect/BiMap;
    • field_21314

      protected Object[] field_21314
      Mappings:
      Namespace Name Mixin selector
      official d Ley;d:[Ljava/lang/Object;
      intermediary field_21314 Lnet/minecraft/class_1943;field_21314:[Ljava/lang/Object;
      named field_21314 Lnet/minecraft/util/registry/SimpleRegistry;field_21314:[Ljava/lang/Object;
    • field_21315

      private int field_21315
      Mappings:
      Namespace Name Mixin selector
      official x Ley;x:I
      intermediary field_21315 Lnet/minecraft/class_1943;field_21315:I
      named field_21315 Lnet/minecraft/util/registry/SimpleRegistry;field_21315:I
  • Constructor Details

    • SimpleRegistry

      public SimpleRegistry()
  • Method Details

    • set

      public void set(int rawId, Identifier identifier, V object)
      Specified by:
      set in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(ILpc;Ljava/lang/Object;)V
      intermediary method_19953 Lnet/minecraft/class_1366;method_19953(ILnet/minecraft/class_1653;Ljava/lang/Object;)V
      named set Lnet/minecraft/util/registry/Registry;set(ILnet/minecraft/util/Identifier;Ljava/lang/Object;)V
    • add

      public void add(Identifier identifier, V object)
      Specified by:
      add in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(Lpc;Ljava/lang/Object;)V
      intermediary method_19957 Lnet/minecraft/class_1366;method_19957(Lnet/minecraft/class_1653;Ljava/lang/Object;)V
      named add Lnet/minecraft/util/registry/Registry;add(Lnet/minecraft/util/Identifier;Ljava/lang/Object;)V
    • getId

      @Nullable public Identifier getId(V object)
      Specified by:
      getId in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official b Lfc;b(Ljava/lang/Object;)Lpc;
      intermediary method_19959 Lnet/minecraft/class_1366;method_19959(Ljava/lang/Object;)Lnet/minecraft/class_1653;
      named getId Lnet/minecraft/util/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;
    • get

      public V get(@Nullable Identifier identifier)
      Specified by:
      get in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(Lpc;)Ljava/lang/Object;
      intermediary method_19956 Lnet/minecraft/class_1366;method_19956(Lnet/minecraft/class_1653;)Ljava/lang/Object;
      named get Lnet/minecraft/util/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
    • getDefaultId

      public Identifier getDefaultId()
      Specified by:
      getDefaultId in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official b Lfc;b()Lpc;
      intermediary method_19958 Lnet/minecraft/class_1366;method_19958()Lnet/minecraft/class_1653;
      named getDefaultId Lnet/minecraft/util/registry/Registry;getDefaultId()Lnet/minecraft/util/Identifier;
    • getRawId

      public int getRawId(@Nullable V v)
      Specified by:
      getRawId in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official method_12580 Ley;method_12580(Ljava/lang/Object;)I
      intermediary method_12580 Lnet/minecraft/class_1943;method_12580(Ljava/lang/Object;)I
      named getRawId Lnet/minecraft/util/registry/SimpleRegistry;getRawId(Ljava/lang/Object;)I
    • getByRawId

      @Nullable public V getByRawId(int index)
      Specified by:
      getByRawId in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official method_7326 Ley;method_7326(I)Ljava/lang/Object;
      intermediary method_7326 Lnet/minecraft/class_1943;method_7326(I)Ljava/lang/Object;
      named getByRawId Lnet/minecraft/util/registry/SimpleRegistry;getByRawId(I)Ljava/lang/Object;
    • iterator

      public Iterator<V> iterator()
      Specified by:
      iterator in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official iterator Ley;iterator()Ljava/util/Iterator;
      intermediary iterator Lnet/minecraft/class_1943;iterator()Ljava/util/Iterator;
      named iterator Lnet/minecraft/util/registry/SimpleRegistry;iterator()Ljava/util/Iterator;
    • getByIdentifier

      @Nullable public V getByIdentifier(@Nullable Identifier identifier)
      Specified by:
      getByIdentifier in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official b Lfc;b(Lpc;)Ljava/lang/Object;
      intermediary method_19960 Lnet/minecraft/class_1366;method_19960(Lnet/minecraft/class_1653;)Ljava/lang/Object;
      named getByIdentifier Lnet/minecraft/util/registry/Registry;getByIdentifier(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
    • getKeySet

      public Set<Identifier> getKeySet()
      Specified by:
      getKeySet in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official c Lfc;c()Ljava/util/Set;
      intermediary method_12583 Lnet/minecraft/class_1366;method_12583()Ljava/util/Set;
      named getKeySet Lnet/minecraft/util/registry/Registry;getKeySet()Ljava/util/Set;
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official d Lfc;d()Z
      intermediary method_19962 Lnet/minecraft/class_1366;method_19962()Z
      named isEmpty Lnet/minecraft/util/registry/Registry;isEmpty()Z
    • getRandom

      @Nullable public V getRandom(Random random)
      Specified by:
      getRandom in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(Ljava/util/Random;)Ljava/lang/Object;
      intermediary method_12584 Lnet/minecraft/class_1366;method_12584(Ljava/util/Random;)Ljava/lang/Object;
      named getRandom Lnet/minecraft/util/registry/Registry;getRandom(Ljava/util/Random;)Ljava/lang/Object;
    • containsId

      public boolean containsId(Identifier identifier)
      Specified by:
      containsId in interface Registry<V>
      Mappings:
      Namespace Name Mixin selector
      official c Lfc;c(Lpc;)Z
      intermediary method_19961 Lnet/minecraft/class_1366;method_19961(Lnet/minecraft/class_1653;)Z
      named containsId Lnet/minecraft/util/registry/Registry;containsId(Lnet/minecraft/util/Identifier;)Z