-
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.
Merge remote-tracking branch 'origin/dev/1.21-networking' into dev/1.…
…21-networking # Conflicts: # networking/neo/src/main/java/band/kessoku/lib/impl/networking/neoforge/CommonPacketsImplNeoForge.java
- Loading branch information
Showing
105 changed files
with
1,707 additions
and
280 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 was deleted.
Oops, something went wrong.
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,32 @@ | ||
name: Run spotless | ||
on: [push, workflow_dispatch] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
java: | ||
- 21 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v4 | ||
- name: setup jdk ${{ matrix.java }} | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: "microsoft" | ||
- name: setup gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
- name: make gradle wrapper executable | ||
run: chmod +x ./gradlew | ||
- name: apply spotless | ||
run: ./gradlew spotlessApply | ||
- name: commit changes and push | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: "chore: Apply Spotless" | ||
default_author: github_actions |
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
15 changes: 15 additions & 0 deletions
15
base/common/src/main/java/band/kessoku/lib/api/base/reflect/ReflectUtil.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
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 @@ | ||
apply from: rootProject.file("gradle/scripts/klib-common.gradle") | ||
|
||
base.archivesName = rootProject.name + "-blockentity" | ||
|
||
kessoku { | ||
module("base", "common") | ||
module("platform", "common") | ||
} | ||
|
||
dependencies { | ||
implementation libs.aj4j | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
import net.fabricmc.loom.util.ModPlatform | ||
|
||
apply from: rootProject.file("gradle/scripts/klib-fabric.gradle") | ||
|
||
base.archivesName = rootProject.name + "-blockentity" | ||
|
||
kessoku { | ||
module("base", "common") | ||
|
||
common("blockentity", ModPlatform.FABRIC) | ||
shadowBundle("blockentity", ModPlatform.FABRIC) | ||
} | ||
|
||
dependencies { | ||
} |
25 changes: 25 additions & 0 deletions
25
...bric/src/main/java/band/kessoku/lib/impl/blockentity/fabric/KessokuBlockEntityFabric.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,25 @@ | ||
/* | ||
* Copyright (c) 2024 KessokuTeaTime | ||
* | ||
* Licensed under the GNU Lesser General Pubic License, Version 3 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.gnu.org/licenses/lgpl-3.0.html | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package band.kessoku.lib.impl.blockentity.fabric; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class KessokuBlockEntityFabric implements ModInitializer { | ||
@Override | ||
public void onInitialize() { | ||
|
||
} | ||
} |
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,36 @@ | ||
{ | ||
"schemaVersion": 1, | ||
"id": "kessoku_blockentity", | ||
"version": "${version}", | ||
"name": "Kessoku Block Entity", | ||
"description": "Common blockentity API.", | ||
"authors": [ | ||
"Kessoku Tea Time" | ||
], | ||
"contact": { | ||
"homepage": "https://modrinth.com/mod/kessoku-lib", | ||
"sources": "https://github.com/KessokuTeaTime/KessokuLib", | ||
"issues": "https://github.com/KessokuTeaTime/KessokuLib/issues" | ||
}, | ||
"license": "LGPL-3.0-only", | ||
"icon": "icon.png", | ||
"entrypoints": { | ||
"main": [ | ||
"band.kessoku.lib.impl.blockentity.fabric.KessokuBlockEntityFabric" | ||
] | ||
}, | ||
"environment": "*", | ||
"depends": { | ||
"fabricloader": ">=0.16.0", | ||
"minecraft": "1.21", | ||
"java": ">=21", | ||
"fabric-api": "*" | ||
}, | ||
"custom": { | ||
"modmenu": { | ||
"badges": [ | ||
"library" | ||
] | ||
} | ||
} | ||
} |
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 @@ | ||
import net.fabricmc.loom.util.ModPlatform | ||
|
||
apply from: rootProject.file("gradle/scripts/klib-neo.gradle") | ||
|
||
base.archivesName = rootProject.name + "-entrypoint" | ||
|
||
kessoku { | ||
module("base", "common") | ||
|
||
common("blockentity", ModPlatform.NEOFORGE) | ||
shadowBundle("blockentity", ModPlatform.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
loom.platform=neoforge |
29 changes: 29 additions & 0 deletions
29
blockentity/neo/src/main/resources/META-INF/neoforge.mods.toml
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,29 @@ | ||
modLoader = "javafml" | ||
loaderVersion = "[4,)" | ||
license = "LGPL-3.0-only" | ||
issueTrackerURL = "https://github.com/KessokuTeaTime/KessokuLib/issues" | ||
|
||
[[mods]] | ||
modId = "kessoku_blockentity" | ||
version = "${version}" | ||
displayName = "Kessoku Block Entity" | ||
description = ''' | ||
Common blockentity API. | ||
''' | ||
logoFile = "icon.png" | ||
authors = "Kessoku Tea Time" | ||
displayURL = "https://modrinth.com/mod/kessoku-lib" | ||
|
||
[[dependencies.kessoku_blockentity]] | ||
modId = "neoforge" | ||
type = "required" | ||
versionRange = "[21.0,)" | ||
ordering = "NONE" | ||
side = "BOTH" | ||
|
||
[[dependencies.kessoku_blockentity]] | ||
modId = "minecraft" | ||
type = "required" | ||
versionRange = "[1.21,)" | ||
ordering = "NONE" | ||
side = "BOTH" |
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
Oops, something went wrong.