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 Details

    • ConstructorServicesImpl

      public ConstructorServicesImpl()
  • Method Details

    • get

      public static net.ixdarklord.coolcatcore.internal.core.ConstructorServices get()
    • onCommonSetup

      public void onCommonSetup(String modId, Runnable task)
      Specified by:
      onCommonSetup in interface net.ixdarklord.coolcatcore.internal.core.ConstructorServices
    • onClientSetup

      public void onClientSetup(String modId, Runnable task)
      Specified by:
      onClientSetup in interface net.ixdarklord.coolcatcore.internal.core.ConstructorServices
    • onServerSetup

      public void onServerSetup(String modId, Runnable task)
      Specified by:
      onServerSetup in interface net.ixdarklord.coolcatcore.internal.core.ConstructorServices
    • addDataGeneration

      public void addDataGeneration(String modId, Supplier<? extends net.ixdarklord.coolcatcore.api.core.DataGenerationConstructor> factory)
      Specified by:
      addDataGeneration in interface net.ixdarklord.coolcatcore.internal.core.ConstructorServices
    • modBus

      public static net.minecraftforge.eventbus.api.IEventBus modBus(String modId)
      The event bus of a Java mod (every Forge mod with an @Mod class).
    • 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).