Interface DefaultedRegistry<T>

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

public interface DefaultedRegistry<T> extends Registry<T>
Mappings:
Namespace Name
named net/minecraft/registry/DefaultedRegistry
intermediary net/minecraft/class_7922
official jl
  • 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
      named getId Lnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;
      intermediary method_10221 Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;
      official b Lkd;b(Ljava/lang/Object;)Lalz;
    • 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
      named get Lnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
      intermediary method_63535 Lnet/minecraft/class_2378;method_63535(Lnet/minecraft/class_2960;)Ljava/lang/Object;
      official a Lkd;a(Lalz;)Ljava/lang/Object;
    • get

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

      Identifier getDefaultId()
      Mappings:
      Namespace Name Mixin selector
      named getDefaultId Lnet/minecraft/registry/DefaultedRegistry;getDefaultId()Lnet/minecraft/util/Identifier;
      intermediary method_10137 Lnet/minecraft/class_7922;method_10137()Lnet/minecraft/class_2960;
      official b Ljl;b()Lalz;