Skip to content

Commit

Permalink
Add IModFileInfo#isClientSideOnly (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintNinja authored Dec 6, 2023
1 parent 0bc7ceb commit 3a54796
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import net.minecraftforge.gradleutils.PomUtils

plugins {
id 'org.cadixdev.licenser' version '0.6.1'
id 'net.minecraftforge.gradleutils' version '2.+'
id 'net.minecraftforge.gradleutils' version '[2.2,2.3)'
id 'maven-publish'
id 'java-library'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ record LanguageSpec(String languageName, VersionRange acceptedVersions) {}

boolean showAsResourcePack();

/**
* 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>
*/
default boolean isClientSideOnly() {
return false;
}

Map<String,Object> getFileProperties();

String getLicense();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class ModFileScanData {
private final Set<AnnotationData> annotations = new LinkedHashSet<>();
private final Set<ClassData> classes = new LinkedHashSet<>();
private final Map<String,IModLanguageProvider.IModLanguageLoader> modTargets = new HashMap<>();
private List<IModFileInfo> modFiles = new ArrayList<>();
private final List<IModFileInfo> modFiles = new ArrayList<>();

@Deprecated(forRemoval = true, since = "7.1")
public static Predicate<Type> interestingAnnotations() {
Expand Down

0 comments on commit 3a54796

Please sign in to comment.