Package net.neoforged.neoforge.event
Class AddPackFindersEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.AddPackFindersEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class AddPackFindersEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Fired on
PackRepository
creation to allow mods to add new pack finders.-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRepositorySource
(RepositorySource source) Adds a new source to the list of pack finders.Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Field Details
-
packType
-
sources
-
-
Constructor Details
-
AddPackFindersEvent
-
-
Method Details
-
addRepositorySource
Adds a new source to the list of pack finders.- Parameters:
source
- the pack finder
-
getPackType
- Returns:
- the
PackType
of the pack repository being constructed.
-