-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CuteNekoOwO/dev/1.20.4
Updated to 1.20.4.
- Loading branch information
Showing
124 changed files
with
461 additions
and
554 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
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
plugins { | ||
id 'com.github.johnrengelman.shadow' version "${shadow_plugin_version}" | ||
id 'me.shedaniel.unified-publishing' version "${unified_publishing_version}" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
fabric() | ||
} | ||
|
||
loom { | ||
accessWidenerPath = project(':').loom.accessWidenerPath | ||
|
||
runs { | ||
data { | ||
inherit client | ||
|
||
name 'Data Generation' | ||
|
||
vmArg '-Dfabric-api.datagen' | ||
vmArg "-Dfabric-api.datagen.output-dir=${file("../src/main/generated")}" | ||
vmArg '-Dfabric-api.datagen.modid=catsplus' | ||
|
||
runDir 'build/datagen' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}" | ||
modApi "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}" | ||
modApi "dev.architectury:architectury-fabric:${project.architectury_version}" | ||
|
||
common(project(path: ':', configuration: 'namedElements')) { transitive = false } | ||
shadowCommon(project(path: ':', configuration: 'transformProductionFabric')) { transitive = false } | ||
} | ||
|
||
shadowJar { | ||
exclude 'architectury.common.json' | ||
|
||
configurations = [project.configurations.shadowCommon] | ||
archiveClassifier = 'dev-shadow' | ||
} | ||
|
||
remapJar { | ||
injectAccessWidener = true | ||
input.set shadowJar.archiveFile | ||
dependsOn shadowJar | ||
} | ||
|
||
sourcesJar { | ||
def commonSources = project(':').sourcesJar | ||
dependsOn commonSources | ||
from commonSources.archiveFile.map { zipTree(it) } | ||
} | ||
|
||
components.java { | ||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) { | ||
skip() | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenFabric(MavenPublication) { | ||
artifactId = project.name | ||
from components.java | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/CatsPlusFabric.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,17 @@ | ||
package cuteneko.catsplus.fabric; | ||
|
||
import cuteneko.catsplus.CatsPlus; | ||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class CatsPlusFabric implements ModInitializer { | ||
private final CatsPlus mod; | ||
|
||
public CatsPlusFabric() { | ||
mod = new CatsPlus(); | ||
} | ||
|
||
@Override | ||
public void onInitialize() { | ||
mod.init(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
catsplus-fabric/src/main/java/cuteneko/catsplus/fabric/CatsPlusPlatformImpl.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,18 @@ | ||
package cuteneko.catsplus.fabric; | ||
|
||
import cuteneko.catsplus.fabric.platform.CatPlayer; | ||
import cuteneko.catsplus.fabric.platform.GeniusCat; | ||
import cuteneko.catsplus.platform.ICatPlayer; | ||
import cuteneko.catsplus.platform.IGeniusCat; | ||
import net.minecraft.entity.passive.CatEntity; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
|
||
public class CatsPlusPlatformImpl { | ||
public static ICatPlayer getCatPlayer(PlayerEntity player) { | ||
return new CatPlayer(player); | ||
} | ||
|
||
public static IGeniusCat getGeniusCat(CatEntity cat) { | ||
return new GeniusCat(cat); | ||
} | ||
} |
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.