Interface AddPack
- All Known Implementing Classes:
AddPackNeoForge
public interface AddPack
Simplifies adding packs by allowing using a method in common instead of separate methods for Fabric & NeoForge.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPack(@NotNull Object modContainerOrEvent, @NotNull String modID, @NotNull String path, @NotNull String displayName, @NotNull ActivationType actType, @NotNull PackType type, @NotNull PackSource source, @NotNull PackPosition position)
-
Method Details
-
addPack
void addPack(@NotNull @NotNull Object modContainerOrEvent, @NotNull @NotNull String modID, @NotNull @NotNull String path, @NotNull @NotNull String displayName, @NotNull @NotNull ActivationType actType, @NotNull @NotNull PackType type, @NotNull @NotNull PackSource source, @NotNull @NotNull PackPosition position) - Parameters:
modContainerOrEvent- ModContainer for Fabric, AddPackFindersEvent for NeoForge.modID- Mod ID of the mod the pack is added by.path- The path the pack is in, starting in the "resource/" directory.displayName- Display name of the pack.actType- SeeActivationType.type- SeePackType.source- SeePackSource.position- SeePackPosition.
-