Skip to content

Commit

Permalink
Merge branch '1.21.4' into SyncWithNeoforge2
Browse files Browse the repository at this point in the history
  • Loading branch information
TelepathicGrunt committed Dec 12, 2024
2 parents 5abcc68 + 86a6267 commit 95d06e0
Show file tree
Hide file tree
Showing 466 changed files with 9,130 additions and 4,864 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ Fabric API makes strong backwards compatibility guarantees, by which contributor
- If vanilla exposes optionals in return types, then returning an optional is fine.
- Avoid requiring the user to cast to a subtype if possible.
- Adding methods to vanilla types can be done via interface injection.
- Avoid exposing java `record`s as public API.
- Records expose more than is necessary for most APIs, which makes them difficult to evolve.
- Prefer to expose an interface that is implemented by an impl record.

### API design patterns to consider

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Essential hooks for modding with Fabric.
Fabric API is the library for essential hooks and interoperability mechanisms for Fabric mods. Examples include:

- Exposing functionality that is useful but difficult to access for many mods such as particles, biomes and dimensions
- Adding events, hooks and APIs to improve interopability between mods.
- Adding events, hooks and APIs to improve interoperability between mods.
- Essential features such as registry synchronization and adding information to crash reports.
- An advanced rendering API designed for compatibility with optimization mods and graphics overhaul mods.

Expand Down
26 changes: 9 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id "idea"
id "maven-publish"
id 'jacoco'
id "fabric-loom" version "1.8.9" apply false
id "fabric-loom" version "1.9.2" apply false
id "com.diffplug.spotless" version "6.20.0"
id "org.ajoberstar.grgit" version "5.2.2"
id "me.modmuss50.remotesign" version "0.4.0" apply false
Expand Down Expand Up @@ -215,7 +215,7 @@ allprojects {
}

allprojects.each { p ->
if (metaProjects.contains(project.name)) {
if (metaProjects.contains(p.name)) {
return
}

Expand Down Expand Up @@ -247,19 +247,6 @@ allprojects {

test {
useJUnitPlatform()

afterEvaluate {
// See: https://github.com/FabricMC/fabric-loader/pull/585
def classPathGroups = loom.mods.stream()
.map { modSettings ->
SourceSetHelper.getClasspath(modSettings, getProject()).stream()
.map(File.&getAbsolutePath)
.collect(Collectors.joining(File.pathSeparator))
}
.collect(Collectors.joining(File.pathSeparator+File.pathSeparator))

systemProperty("fabric.classPathGroups", classPathGroups)
}
}

tasks.withType(ProcessResources).configureEach {
Expand All @@ -284,7 +271,7 @@ allprojects {

checkstyle {
configFile = rootProject.file("checkstyle.xml")
toolVersion = "10.12.1"
toolVersion = "10.20.2"
}

tasks.withType(AbstractArchiveTask).configureEach {
Expand Down Expand Up @@ -422,7 +409,7 @@ loom {

// Enable the gametest runner
vmArg "-Dfabric-api.gametest"
vmArg "-Dfabric-api.gametest.report-file=${project.buildDir}/junit.xml"
vmArg "-Dfabric-api.gametest.report-file=${project.layout.buildDirectory.file("junit.xml").get().getAsFile()}"
runDir "build/gametest"
}
autoTestServer {
Expand Down Expand Up @@ -452,6 +439,11 @@ loom {
}
}
}

runGametest {
outputs.file project.layout.buildDirectory.file("junit.xml")
}

test.dependsOn runGametest

def coverageTasks = [
Expand Down
5 changes: 5 additions & 0 deletions checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,10 @@
<module name="MatchXpath">
<property name="query" value="//VARIABLE_DEF[./TYPE/IDENT[@text='var'] and not(./ASSIGN/EXPR/LITERAL_NEW)]"/>
</module>

<!-- Prevent public records in API packages -->
<module name="MatchXpath">
<property name="query" value="//RECORD_DEF[./MODIFIERS/LITERAL_PUBLIC][//PACKAGE_DEF//DOT/IDENT[@text='api']]"/>
</module>
</module>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.7",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-command-api-v2": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.7",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-command-api-v2": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
},
"depends": {
"fabricloader": ">=0.16.7",
"fabricloader": ">=0.16.9",
"minecraft": ">=1.18.2"
},
"description": "Contains common tags used by mods for vanilla things.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.7",
"fabricloader": ">=0.16.9",
"fabric-key-binding-api-v1": "*"
},
"description": "Keybinding registry API.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.7",
"fabricloader": ">=0.16.9",
"fabric-api-base": "*",
"fabric-resource-loader-v0": "*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.7",
"fabricloader": ">=0.16.9",
"fabric-block-view-api-v2": "*"
},
"description": "Thread-safe hooks for block entity data use during terrain rendering.",
Expand Down
6 changes: 0 additions & 6 deletions deprecated/fabric-rendering-v0/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion fabric-api-base/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"FabricMC"
],
"depends": {
"fabricloader": ">=0.16.7"
"fabricloader": ">=0.16.9"
},
"description": "Contains the essentials for Fabric API modules.",
"custom": {
Expand Down
Loading

0 comments on commit 95d06e0

Please sign in to comment.