Class FMLModContainer

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

public class FMLModContainer extends ModContainer
  • Field Details

    • LOGGER

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

      private final net.minecraftforge.forgespi.language.ModFileScanData scanResults
    • eventBus

      private final net.minecraftforge.eventbus.api.IEventBus eventBus
    • modInstance

      private Object modInstance
    • modClass

      private final Class<?> modClass
  • Constructor Details

    • FMLModContainer

      public FMLModContainer(net.minecraftforge.forgespi.language.IModInfo info, String className, ClassLoader modClassLoader, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults)
  • Method Details

    • onEventFailed

      private void onEventFailed(net.minecraftforge.eventbus.api.IEventBus iEventBus, net.minecraftforge.eventbus.api.Event event, net.minecraftforge.eventbus.api.IEventListener[] iEventListeners, int i, Throwable throwable)
    • constructMod

      private void constructMod()
    • matches

      public boolean matches(Object mod)
      Description copied from class: ModContainer
      Does this mod match the supplied mod?
      Specified by:
      matches in class ModContainer
      Parameters:
      mod - to compare
      Returns:
      if the mod matches
    • getMod

      public Object getMod()
      Specified by:
      getMod in class ModContainer
      Returns:
      the mod object instance
    • getEventBus

      public net.minecraftforge.eventbus.api.IEventBus getEventBus()
    • acceptEvent

      protected <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> void acceptEvent(T e)
      Description copied from class: ModContainer
      Accept an arbitrary event for processing by the mod. Probably posted to an event bus in the lower level container.
      Overrides:
      acceptEvent in class ModContainer
      Parameters:
      e - Event to accept