-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
020a45f
commit 824c809
Showing
8 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apply from: rootProject.file("gradle/scripts/klib-common.gradle") | ||
|
||
group = "band.kessoku.lib.resources" | ||
base.archivesName = rootProject.name + "-package" | ||
|
||
// You can delete this section if you need to | ||
dependencies { | ||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...me-resources/common/src/main/java/band/kessoku/lib/resources/KessokuResourcesManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package band.kessoku.lib.resources; | ||
|
||
import band.kessoku.lib.resources.api.IProvider; | ||
import com.google.common.collect.ImmutableList; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class KessokuResourcesManager { | ||
|
||
private final String modid; | ||
|
||
private final List<IProvider> providers = new ArrayList<>(); | ||
|
||
private KessokuResourcesManager(String modid) { | ||
this.modid = modid; | ||
} | ||
|
||
public static KessokuResourcesManager create(String modid) { | ||
return new KessokuResourcesManager(modid); | ||
} | ||
|
||
public void addProvider(IProvider provider) { | ||
providers.add(provider); | ||
} | ||
|
||
public String getModid() { | ||
return modid; | ||
} | ||
|
||
public List<IProvider> getProviders() { | ||
return ImmutableList.copyOf(providers); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...me-resources/common/src/main/java/band/kessoku/lib/resources/KessokuRuntimeResources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package band.kessoku.lib.resources; | ||
|
||
import org.slf4j.Marker; | ||
import org.slf4j.MarkerFactory; | ||
|
||
public class KessokuRuntimeResources { | ||
public static final String MOD_ID = "kessoku_runtime_resources"; | ||
public static final Marker MARKER = MarkerFactory.getMarker("[KessokuRuntimeResources]"); | ||
} |
4 changes: 4 additions & 0 deletions
4
runtime-resources/common/src/main/java/band/kessoku/lib/resources/api/IProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package band.kessoku.lib.resources.api; | ||
|
||
public interface IProvider { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apply from: rootProject.file("gradle/scripts/klib-fabric.gradle") | ||
|
||
group = "band.kessoku.lib.resources" | ||
base.archivesName = rootProject.name + "-package" | ||
|
||
dependencies { | ||
common(project(path: ':runtime-resources-common', configuration: 'namedElements')) { transitive false } | ||
shadowBundle(project(path: ':runtime-resources-common', configuration: 'transformProductionFabric')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apply from: rootProject.file("gradle/scripts/klib-neo.gradle") | ||
|
||
group = "band.kessoku.lib.resources" | ||
base.archivesName = rootProject.name + "-package" | ||
|
||
dependencies { | ||
common(project(path: ':runtime-resources-common', configuration: 'namedElements')) { transitive false } | ||
shadowBundle(project(path: ':runtime-resources-common', configuration: 'transformProductionNeoForge')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
loom.platform=neoforge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters