Class LowCodeModContainer

java.lang.Object
net.minecraftforge.fml.ModContainer
net.minecraftforge.fml.lowcodemod.LowCodeModContainer

public class LowCodeModContainer extends ModContainer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • scanResults

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

      private Object modInstance
  • Constructor Details

    • LowCodeModContainer

      public LowCodeModContainer(net.minecraftforge.forgespi.language.IModInfo info, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer)
  • Method Details

    • 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
    • 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