-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
0204c54
commit fa18489
Showing
35 changed files
with
660 additions
and
59 deletions.
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 |
---|---|---|
|
@@ -40,7 +40,7 @@ jobs: | |
- name: Upload Forge Releases (Curse/Modrinth/Github) | ||
id: forge_release | ||
if: contains(steps.properties.outputs.enabledPlatforms, 'forge') | ||
uses: Kir-Antipov/mc-publish@v3.2 | ||
uses: Kir-Antipov/mc-publish@v3.3 | ||
with: | ||
curseforge-id: ${{ vars.CURSE_ID }} | ||
curseforge-token: ${{ secrets.CURSE_TOKEN }} | ||
|
@@ -57,10 +57,30 @@ jobs: | |
game-versions: ${{ steps.properties.outputs.minecraftVersion }} | ||
version-resolver: exact | ||
|
||
- name: Upload NeoForge Releases (Curse/Modrinth/Github) | ||
id: neoforge_release | ||
if: contains(steps.properties.outputs.enabledPlatforms, 'neoforge') | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
curseforge-id: ${{ vars.CURSE_ID }} | ||
curseforge-token: ${{ secrets.CURSE_TOKEN }} | ||
|
||
modrinth-id: ${{ vars.MODRINTH_ID }} | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
files: ./neoforge/build/libs/!(*-@(dev|sources|dev-shadow)).jar | ||
name: "[NeoForge] Athena ${{ steps.properties.outputs.version }}" | ||
version: ${{ steps.properties.outputs.version }} | ||
version-type: release | ||
changelog-file: changelog.md | ||
loaders: forge | ||
game-versions: ${{ steps.properties.outputs.minecraftVersion }} | ||
version-resolver: exact | ||
|
||
- name: Upload Fabric Releases (Curse/Modrinth/Github) | ||
id: fabric_release | ||
if: contains(steps.properties.outputs.enabledPlatforms, 'fabric') | ||
uses: Kir-Antipov/mc-publish@v3.2 | ||
uses: Kir-Antipov/mc-publish@v3.3 | ||
with: | ||
curseforge-id: ${{ vars.CURSE_ID }} | ||
curseforge-token: ${{ secrets.CURSE_TOKEN }} | ||
|
@@ -80,8 +100,9 @@ jobs: | |
- name: Generate Discord Embed | ||
run: ./gradlew injectEmbed | ||
env: | ||
FORGE_RELEASE_URL: ${{ steps.forge_release.outputs.modrinth-url }} | ||
FABRIC_RELEASE_URL: ${{ steps.fabric_release.outputs.modrinth-url }} | ||
FORGE_RELEASE_URL: ${{ steps.forge_release.outputs.modrinth-version }} | ||
FABRIC_RELEASE_URL: ${{ steps.fabric_release.outputs.modrinth-version }} | ||
NEOFORGE_RELEASE_URL: ${{ steps.neoforge_release.outputs.modrinth-version }} | ||
|
||
- name: Upload Discord Embed | ||
uses: tsickert/[email protected] | ||
|
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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
- Fixed lighting issues | ||
- 1.20.2 Update | ||
- Added support for 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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
fabricApiVersion=0.83.1 | ||
fabricApiVersion=0.90.7 |
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
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
loom.platform=forge | ||
|
||
forgeVersion=47.0.1 | ||
forgeVersion=48.0.39 |
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
org.gradle.jvmargs=-Xmx3G | ||
|
||
minecraftVersion=1.20.1 | ||
enabledPlatforms=fabric,forge | ||
minecraftVersion=1.20.2 | ||
enabledPlatforms=fabric,forge,neoforge | ||
|
||
version=3.1.1 | ||
version=3.2.0 | ||
group=earth.terrarium.athena | ||
|
||
fabricLoaderVersion=0.14.21 | ||
fabricLoaderVersion=0.14.24 |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
zipStorePath=wrapper/dists |
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,22 @@ | ||
architectury { | ||
neoForge() | ||
} | ||
|
||
val common: Configuration by configurations.creating { | ||
configurations.compileClasspath.get().extendsFrom(this) | ||
configurations.runtimeClasspath.get().extendsFrom(this) | ||
configurations["developmentNeoForge"].extendsFrom(this) | ||
} | ||
|
||
dependencies { | ||
val neoforgeVersion: String by project | ||
|
||
neoForge(group = "net.neoforged", name = "neoforge", version = neoforgeVersion) | ||
|
||
common(project(":common", configuration = "namedElements")) { | ||
isTransitive = false | ||
} | ||
shadowCommon(project(path = ":common", configuration = "transformProductionNeoForge")) { | ||
isTransitive = false | ||
} | ||
} |
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,3 @@ | ||
loom.platform=neoforge | ||
|
||
neoforgeVersion=20.2.59-beta |
30 changes: 30 additions & 0 deletions
30
...e/src/main/java/earth/terrarium/athena/api/client/models/neoforge/FactoryManagerImpl.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,30 @@ | ||
package earth.terrarium.athena.api.client.models.neoforge; | ||
|
||
import earth.terrarium.athena.api.client.models.AthenaModelFactory; | ||
import earth.terrarium.athena.api.client.neoforge.AthenaUnbakedModel; | ||
import earth.terrarium.athena.api.client.utils.AthenaUnbakedModelLoader; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
import java.util.Collection; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class FactoryManagerImpl { | ||
|
||
private static final Map<ResourceLocation, AthenaUnbakedModelLoader> FACTORIES = new HashMap<>(); | ||
|
||
public static void register(ResourceLocation type, AthenaModelFactory factory) { | ||
if (FACTORIES.containsKey(type)) { | ||
throw new IllegalArgumentException("Factory already registered for type: " + type); | ||
} | ||
FACTORIES.put(type, new AthenaUnbakedModelLoader(type, factory, AthenaUnbakedModel::new)); | ||
} | ||
|
||
public static AthenaUnbakedModelLoader get(ResourceLocation type) { | ||
return FACTORIES.get(type); | ||
} | ||
|
||
public static Collection<ResourceLocation> getTypes() { | ||
return FACTORIES.keySet(); | ||
} | ||
} |
Oops, something went wrong.