Interface DefaultedRegistry<T>

All Superinterfaces:
IndexedIterable<T>, Iterable<T>, com.mojang.serialization.Keyable, Registry<T>
All Known Implementing Classes:
SimpleDefaultedRegistry

public interface DefaultedRegistry<T> extends Registry<T>
Mappings:
Namespace Name
official gy
intermediary net/minecraft/class_7922
named net/minecraft/registry/DefaultedRegistry
  • Method Details

    • getId

      @NotNull @NotNull Identifier getId(T value)
      Returns the ID assigned to value, or null if it is not registered.
      Specified by:
      getId in interface Registry<T>
      Returns:
      the ID assigned to value, or null if it is not registered
      Mappings:
      Namespace Name Mixin selector
      official b Lhq;b(Ljava/lang/Object;)Ladd;
      intermediary method_10221 Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;
    • get

      Returns the value that is assigned id, or null if there is none.
      Specified by:
      get in interface Registry<T>
      Returns:
      the value that is assigned id, or null if there is none
      Mappings:
      Namespace Name Mixin selector
      official a Lhq;a(Ladd;)Ljava/lang/Object;
      intermediary method_10223 Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/lang/Object;
      named get Lnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
    • get

      @NotNull T get(int index)
      Specified by:
      get in interface IndexedIterable<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lhi;a(I)Ljava/lang/Object;
      intermediary method_10200 Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;
      named get Lnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
    • getDefaultId

      Identifier getDefaultId()
      Mappings:
      Namespace Name Mixin selector
      official a Lgy;a()Ladd;
      intermediary method_10137 Lnet/minecraft/class_7922;method_10137()Lnet/minecraft/class_2960;
      named getDefaultId Lnet/minecraft/registry/DefaultedRegistry;getDefaultId()Lnet/minecraft/util/Identifier;