Skip to content

Commit

Permalink
Add IModFileInfo#showAsDataPack (#18)
Browse files Browse the repository at this point in the history
* Add separate flag for showing mod as data pack in addition to showing as resource pack

Co-Authored-By: Luke Bemish <lukebemish@lukebemish.dev>
  • Loading branch information
PaintNinja and lukebemish authored Dec 6, 2023
1 parent 3a54796 commit 27d7601
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ record LanguageSpec(String languageName, VersionRange acceptedVersions) {}

boolean showAsResourcePack();

/**
* @return true if this mod file should be shown as a data pack.
*/
default boolean showAsDataPack() {
return false;
}

/**
* Indicates if this mod file is only intended for physical clients.
* <p>When true, the loader will skip loading this mod file on dedicated servers.</p>
Expand Down

0 comments on commit 27d7601

Please sign in to comment.