-
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
Showing
15 changed files
with
213 additions
and
31 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 |
---|---|---|
|
@@ -16,4 +16,6 @@ classes/ | |
.metadata | ||
.vscode | ||
.settings | ||
*.launch | ||
*.launch | ||
|
||
.DS_Store |
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 @@ | ||
## [3.0.1] | ||
## [84.0.0] | ||
|
||
### Changed | ||
|
||
- Improved multi-threading safety and performance thanks to [(#7)](https://github.com/ErrorMikey/AcceleratedDecay/pull/7) [BumbleTree](https://github.com/BumbleTree) | ||
- Ported to 1.20.4 |
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
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.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
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,91 @@ | ||
plugins { | ||
id "com.github.johnrengelman.shadow" version "7.1.2" | ||
} | ||
|
||
architectury { | ||
platformSetupLoomIde() | ||
neoForge() | ||
} | ||
|
||
repositories { | ||
maven { url "https://maven.neoforged.net/releases" } | ||
maven { url "https://maven.creeperhost.net/" } | ||
} | ||
|
||
loom { | ||
accessWidenerPath = project(":common").loom.accessWidenerPath | ||
|
||
neoForge {} | ||
} | ||
|
||
configurations { | ||
common | ||
shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this. | ||
compileClasspath.extendsFrom common | ||
runtimeClasspath.extendsFrom common | ||
developmentNeoForge.extendsFrom common | ||
} | ||
|
||
dependencies { | ||
neoForge "net.neoforged:neoforge:${rootProject.neoforge_version}" | ||
// Remove the next line if you don't want to depend on the API | ||
modApi "dev.architectury:architectury-neoforge:${rootProject.architectury_version}" | ||
|
||
common(project(path: ":common", configuration: "namedElements")) { transitive false } | ||
shadowCommon(project(path: ":common", configuration: "transformProductionNeoForge")) { transitive = false } | ||
} | ||
|
||
processResources { | ||
inputs.property "version", project.version | ||
|
||
filesMatching("META-INF/mods.toml") { | ||
expand "version": project.version | ||
} | ||
} | ||
|
||
shadowJar { | ||
exclude "fabric.mod.json" | ||
exclude "architectury.common.json" | ||
|
||
configurations = [project.configurations.shadowCommon] | ||
setArchiveClassifier "dev-shadow" | ||
} | ||
|
||
remapJar { | ||
input.set shadowJar.archiveFile | ||
dependsOn shadowJar | ||
setArchiveClassifier null | ||
setArchivesBaseName("${rootProject.archivesBaseName}-${project.name}") // adds fabric to the maven and curse name | ||
atAccessWideners.add('accelerateddecay.accesswidener') | ||
} | ||
|
||
jar { | ||
setArchiveClassifier "dev" | ||
} | ||
|
||
sourcesJar { | ||
def commonSources = project(":common").sourcesJar | ||
dependsOn commonSources | ||
from commonSources.archiveFile.map { zipTree(it) } | ||
} | ||
|
||
components.java { | ||
withVariantsFromConfiguration(project.configurations.shadowRuntimeElements) { | ||
skip() | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenForge(MavenPublication) { | ||
artifactId = "${rootProject.archivesBaseName}-${project.name}" | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
sourceSets.each { | ||
def dir = layout.buildDirectory.dir("sourcesSets/$it.name") | ||
it.output.resourcesDir = dir | ||
it.java.destinationDirectory = dir | ||
} |
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 |
12 changes: 12 additions & 0 deletions
12
neoforge/src/main/java/pro/mikey/accelerateddecay/neoforge/AcceleratedDecayNeoforge.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,12 @@ | ||
package pro.mikey.accelerateddecay.neoforge; | ||
|
||
import net.neoforged.fml.common.Mod; | ||
import pro.mikey.accelerateddecay.AcceleratedDecay; | ||
|
||
@Mod(AcceleratedDecay.MOD_ID) | ||
public class AcceleratedDecayNeoforge { | ||
public AcceleratedDecayNeoforge() { | ||
// EventBuses.registerModEventBus(AcceleratedDecay.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus()); | ||
AcceleratedDecay.init(); | ||
} | ||
} |
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,41 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[1,)" | ||
#issueTrackerURL = "" | ||
license = "GPL3" | ||
|
||
[[mods]] | ||
modId = "accelerateddecay" | ||
version = "${version}" | ||
displayName = "Accelerated Decay" | ||
authors = "ErrorMikey" | ||
description = ''' | ||
Speeds up the decay of leaves | ||
''' | ||
#logoFile = "" | ||
|
||
[[dependencies.accelerateddecay]] | ||
modId = "neoforge" | ||
required = true | ||
versionRange = "[20.2,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.accelerateddecay]] | ||
modId = "minecraft" | ||
required = true | ||
versionRange = "[1.20.2,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.accelerateddecay]] | ||
modId = "architectury" | ||
required = true | ||
versionRange = "[9.1.12,)" | ||
ordering = "AFTER" | ||
side = "BOTH" | ||
|
||
[[mixins]] | ||
config = "accelerateddecay-common.mixins.json" | ||
|
||
[[mixins]] | ||
config = "accelerateddecay.mixins.json" |
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,10 @@ | ||
{ | ||
"required": true, | ||
"package": "pro.mikey.accelerateddecay.mixin.neoforge", | ||
"compatibilityLevel": "JAVA_17", | ||
"client": [], | ||
"mixins": [], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"pack": { | ||
"description": "accelerateddecay Mod", | ||
"pack_format": 8 | ||
} | ||
} |
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,29 +1,24 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
|
||
maven { | ||
url "https://files.minecraftforge.net/" | ||
} | ||
|
||
maven { | ||
url "https://maven.neoforged.net/releases" | ||
content { | ||
includeGroup "net.neoforged" | ||
} | ||
} | ||
|
||
maven { | ||
url "https://maven.creeperhost.net/" | ||
content { | ||
includeGroup "net.minecraftforge" | ||
includeGroup "net.fabricmc" | ||
includeGroup "de.oceanlabs.mcp" | ||
includeGroup "dev.architectury" | ||
includeGroup "dev.architectury.loom" | ||
includeGroup "architectury-plugin" | ||
} | ||
} | ||
} | ||
} | ||
|
||
include("common") | ||
include("fabric") | ||
include("forge") | ||
include("neoforge") | ||
|
||
rootProject.name = "accelerated-decay" |