Interface RegistryCreator<T>

All Known Subinterfaces:
IdAwareRegistryHandler<T,P>, RegistryHandler<T>
All Known Implementing Classes:
FabricRegistryHandler, IdAwareRegistryHandlerImpl

public interface RegistryCreator<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.core.Registry<T>
     
    default net.minecraft.core.Registry<T>
    createNewRegistry(boolean sync)
     
    net.minecraft.core.Registry<T>
    createNewRegistry(boolean sync, @Nullable net.minecraft.resources.ResourceLocation defaultEntry)
     
  • Method Details

    • createNewRegistry

      net.minecraft.core.Registry<T> createNewRegistry(boolean sync, @Nullable @Nullable net.minecraft.resources.ResourceLocation defaultEntry)
      Parameters:
      sync - Whether the registry int IDs should be synchronized to each client
      defaultEntry - The default entry for the registry. if null this method will return a MappedRegistry, otherwise a DefaultedRegistry
    • createNewRegistry

      default net.minecraft.core.Registry<T> createNewRegistry(boolean sync)
    • createNewRegistry

      default net.minecraft.core.Registry<T> createNewRegistry()