Interface Registry<T>

All Superinterfaces:
Iterable<T>

public interface Registry<T> extends Iterable<T>
  • Method Details

    • delegate

      default Supplier<T> delegate(net.minecraft.resources.ResourceLocation id)
    • delegateSupplied

      RegistrySupplier<T> delegateSupplied(net.minecraft.resources.ResourceLocation id)
    • register

      default <E extends T> Supplier<E> register(net.minecraft.resources.ResourceLocation id, Supplier<E> supplier)
    • registerSupplied

      <E extends T> RegistrySupplier<E> registerSupplied(net.minecraft.resources.ResourceLocation id, Supplier<E> supplier)
    • getId

      @Nullable @Nullable net.minecraft.resources.ResourceLocation getId(T obj)
    • getRawId

      int getRawId(T obj)
    • getKey

      Optional<net.minecraft.resources.ResourceKey<T>> getKey(T obj)
    • get

      @Nullable T get(net.minecraft.resources.ResourceLocation id)
    • byRawId

      @Nullable T byRawId(int rawId)
    • contains

      boolean contains(net.minecraft.resources.ResourceLocation id)
    • containsValue

      boolean containsValue(T obj)
    • getIds

      Set<net.minecraft.resources.ResourceLocation> getIds()
    • entrySet

      Set<Map.Entry<net.minecraft.resources.ResourceKey<T>,T>> entrySet()
    • key

      net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key()