Package net.minecraftforge.event
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.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.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
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 resource manager being constructed.
-