mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-16 06:04:47 +00:00
reformat code
This commit is contained in:
21 files changed
+731
-498
No files matched your search
@@ -1,14 +1,13 @@
|
||||
package com.falsepattern.lib.mixin;
|
||||
|
||||
import com.google.common.io.Files;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
public interface ITargetedMod {
|
||||
|
||||
String getModName();
|
||||
Predicate<String> getCondition();
|
||||
|
||||
boolean isLoadInDevelopment();
|
||||
|
||||
default boolean isMatchingJar(Path path) {
|
||||
@@ -19,6 +18,8 @@ public interface ITargetedMod {
|
||||
return "jar".equals(fileExtension) && getCondition().test(nameLowerCase);
|
||||
}
|
||||
|
||||
Predicate<String> getCondition();
|
||||
|
||||
final class PredicateHelpers {
|
||||
public static Predicate<String> startsWith(String subString) {
|
||||
return (name) -> name.startsWith(subString);
|
||||
|
||||
Reference in new issue
Block a user