Class AddPackFindersEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.AddPackFindersEvent
All Implemented Interfaces:
IModBusEvent

public class AddPackFindersEvent extends net.minecraftforge.eventbus.api.Event implements IModBusEvent
Fired on PackRepository creation to allow mods to add new pack finders.
  • Field Details

  • Constructor Details

  • Method Details

    • addRepositorySource

      public void addRepositorySource(RepositorySource source)
      Adds a new source to the list of pack finders.
      Parameters:
      source - the pack finder
    • getPackType

      public PackType getPackType()
      Returns:
      the PackType of the pack repository being constructed.