Class ConstructorServicesImpl
java.lang.Object
net.ixdarklord.coolcatcore.internal.core.forge.ConstructorServicesImpl
- All Implemented Interfaces:
net.ixdarklord.coolcatcore.internal.core.ConstructorServices
public final class ConstructorServicesImpl
extends Object
implements net.ixdarklord.coolcatcore.internal.core.ConstructorServices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataGeneration(String modId, Supplier<? extends net.ixdarklord.coolcatcore.api.core.DataGenerationConstructor> factory) static net.ixdarklord.coolcatcore.internal.core.ConstructorServicesget()static <T extends net.minecraftforge.eventbus.api.Event>
voidAdds a listener for an exact event class (Forge's lambda type resolution isn't needed).static net.minecraftforge.eventbus.api.IEventBusThe event bus of a Java mod (every Forge mod with an@Modclass).voidonClientSetup(String modId, Runnable task) voidonCommonSetup(String modId, Runnable task) voidonServerSetup(String modId, Runnable task)
-
Constructor Details
-
ConstructorServicesImpl
public ConstructorServicesImpl()
-
-
Method Details
-
get
public static net.ixdarklord.coolcatcore.internal.core.ConstructorServices get() -
onCommonSetup
- Specified by:
onCommonSetupin interfacenet.ixdarklord.coolcatcore.internal.core.ConstructorServices
-
onClientSetup
- Specified by:
onClientSetupin interfacenet.ixdarklord.coolcatcore.internal.core.ConstructorServices
-
onServerSetup
- Specified by:
onServerSetupin interfacenet.ixdarklord.coolcatcore.internal.core.ConstructorServices
-
addDataGeneration
public void addDataGeneration(String modId, Supplier<? extends net.ixdarklord.coolcatcore.api.core.DataGenerationConstructor> factory) - Specified by:
addDataGenerationin interfacenet.ixdarklord.coolcatcore.internal.core.ConstructorServices
-
modBus
The event bus of a Java mod (every Forge mod with an@Modclass). -
listen
public static <T extends net.minecraftforge.eventbus.api.Event> void listen(net.minecraftforge.eventbus.api.IEventBus bus, Class<T> type, Consumer<T> listener) Adds a listener for an exact event class (Forge's lambda type resolution isn't needed).
-