Interface ConstructorServices
public interface ConstructorServices
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataGeneration(String modId, Supplier<? extends DataGenerationConstructor> factory) Keeps the factory until data is generated for the mod; it's never called otherwise.static ConstructorServicesget()voidonClientSetup(String modId, Runnable task) voidonCommonSetup(String modId, Runnable task) voidonServerSetup(String modId, Runnable task)
-
Method Details
-
get
-
onCommonSetup
-
onClientSetup
-
onServerSetup
-
addDataGeneration
Keeps the factory until data is generated for the mod; it's never called otherwise.
-