Interface RegistrarManager.RegistryProvider

Enclosing class:
RegistrarManager

@Internal public static interface RegistrarManager.RegistryProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(Class<T> type, net.minecraft.resources.ResourceLocation registryId)
     
    <T> void
    forRegistry(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key, Consumer<Registrar<T>> consumer)
     
    <T> Registrar<T>
    get(net.minecraft.core.Registry<T> registry)
    Deprecated.
    <T> Registrar<T>
    get(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key)
     
  • Method Details

    • get

      <T> Registrar<T> get(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key)
    • get

      @Deprecated <T> Registrar<T> get(net.minecraft.core.Registry<T> registry)
      Deprecated.
    • forRegistry

      <T> void forRegistry(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> key, Consumer<Registrar<T>> consumer)
    • builder

      <T> RegistrarBuilder<T> builder(Class<T> type, net.minecraft.resources.ResourceLocation registryId)