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 TypeMethodDescriptiondefault 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 clientdefaultEntry- The default entry for the registry. ifnullthis method will return aMappedRegistry, otherwise aDefaultedRegistry
-
createNewRegistry
-
createNewRegistry
-