Class FMLModContainer

java.lang.Object
net.neoforged.fml.ModContainer
net.neoforged.fml.javafmlmod.FMLModContainer

public class FMLModContainer extends ModContainer
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • LOADING

      private static final org.apache.logging.log4j.Marker LOADING
    • scanResults

      private final ModFileScanData scanResults
    • eventBus

      private final net.neoforged.bus.api.IEventBus eventBus
    • modClasses

      private final List<Class<?>> modClasses
    • layer

      private final Module layer
  • Constructor Details

  • Method Details

    • onEventFailed

      private void onEventFailed(net.neoforged.bus.api.IEventBus iEventBus, net.neoforged.bus.api.Event event, net.neoforged.bus.api.EventListener[] iEventListeners, int i, Throwable throwable)
    • constructMod

      protected void constructMod()
      Description copied from class: ModContainer
      Function invoked by FML to construct the mod, right before the dispatch of FMLConstructModEvent.
      Overrides:
      constructMod in class ModContainer
    • getEventBus

      public net.neoforged.bus.api.IEventBus getEventBus()
      Description copied from class: ModContainer
      Returns the event bus for this mod, if available.

      Not all mods have an event bus!

      Specified by:
      getEventBus in class ModContainer
      Returns:
      the event bus for this mod, if available