diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 4ffbd90..0000000 --- a/.editorconfig +++ /dev/null @@ -1,22 +0,0 @@ -# This is the universal Text Editor Configuration -# for all GTNewHorizons projects -# See: https://editorconfig.org/ - -root = true - -[*] -charset = utf-8 -end_of_line = lf -indent_size = 4 -indent_style = space -insert_final_newline = true -trim_trailing_whitespace = true - -[*.{bat,ini}] -end_of_line = crlf - -[*.{dtd,json,info,mcmeta,md,sh,svg,xml,xsd,xsl,yaml,yml}] -indent_size = 2 - -[*.lang] -trim_trailing_whitespace = false diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml deleted file mode 100644 index 3ee2f68..0000000 --- a/.github/workflows/build-and-test.yml +++ /dev/null @@ -1,13 +0,0 @@ - -name: Build and test - -on: - pull_request: - branches: [ master, main ] - push: - branches: [ master, main ] - -jobs: - build-and-test: - uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@master - secrets: inherit diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml deleted file mode 100644 index e4c0be6..0000000 --- a/.github/workflows/release-tags.yml +++ /dev/null @@ -1,14 +0,0 @@ - -name: Release tagged build - -on: - push: - tags: [ '*' ] - -permissions: - contents: write - -jobs: - release-tags: - uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master - secrets: inherit diff --git a/LICENSE-template b/LICENSE-template deleted file mode 100644 index 242da62..0000000 --- a/LICENSE-template +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 3ae5bcd..30e00d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ # CinderCore +Core API for the Cinder Project +Cinder is a project with the goal of removing the barrier of entry to modded servers. You are not strictly required to have the Cinder content mods installed to log into supported server, instead any items, blocks and entities your client fails to recognize, are packet manipulated to look like something your client can handle + +Use the following methods to register fallbacks for entities, items and blocks (items and blocks both count as items) + +```java +// Input fields are of type Item, Item, String, String +// Version name needs to only contain numbers and dots +// Version is used to track in which version was feature added, to enable outdated versions of a mod to be used on login +CinderCore.registerItemFallback(Item.getIdFromItem(itemField), Item.getIdFromItem(Items.itemField), "mod_name", "mod_version"); + +// Fallback entity currently needs to be modded. Working on adding compatibility for vanilla entities. +CinderCore.registerEntityFallback(YourModdedEntity.class, FallbackEntity.class, "mod_name", "mod_version"); + +// Also supports custom fallbacks. These need to be explicitly implemented in CinderCore. Currently only implemented custom fallback is for banners. Check com.zivilon.cindercore.mixins.LOTRPatches.java for the implementation +// More custom fallbacks can be added to LOTRPatches.java if LOTR related. If related to other mods, please create new mixin class to organize code better. +CinderCore.registerCustomFallback(banner_id, target_id, "banner", "mod_name", "mod_version"); +``` diff --git a/jitpack.yml b/jitpack.yml deleted file mode 100644 index 09bbb51..0000000 --- a/jitpack.yml +++ /dev/null @@ -1,2 +0,0 @@ -before_install: - - ./gradlew setupCIWorkspace \ No newline at end of file diff --git a/run/natives/lwjgl2/jinput-dx8.dll b/run/natives/lwjgl2/jinput-dx8.dll deleted file mode 100644 index bf3fe90..0000000 Binary files a/run/natives/lwjgl2/jinput-dx8.dll and /dev/null differ diff --git a/run/natives/lwjgl2/jinput-dx8_64.dll b/run/natives/lwjgl2/jinput-dx8_64.dll deleted file mode 100644 index a56d9a7..0000000 Binary files a/run/natives/lwjgl2/jinput-dx8_64.dll and /dev/null differ diff --git a/run/natives/lwjgl2/jinput-raw.dll b/run/natives/lwjgl2/jinput-raw.dll deleted file mode 100644 index 1131d47..0000000 Binary files a/run/natives/lwjgl2/jinput-raw.dll and /dev/null differ diff --git a/run/natives/lwjgl2/jinput-raw_64.dll b/run/natives/lwjgl2/jinput-raw_64.dll deleted file mode 100644 index 38e1c10..0000000 Binary files a/run/natives/lwjgl2/jinput-raw_64.dll and /dev/null differ diff --git a/run/natives/lwjgl2/jinput-wintab.dll b/run/natives/lwjgl2/jinput-wintab.dll deleted file mode 100644 index e075ec3..0000000 Binary files a/run/natives/lwjgl2/jinput-wintab.dll and /dev/null differ diff --git a/run/natives/lwjgl2/libjinput-linux.so b/run/natives/lwjgl2/libjinput-linux.so deleted file mode 100644 index dba9e59..0000000 Binary files a/run/natives/lwjgl2/libjinput-linux.so and /dev/null differ diff --git a/run/natives/lwjgl2/libjinput-linux64.so b/run/natives/lwjgl2/libjinput-linux64.so deleted file mode 100644 index 8b5f9d8..0000000 Binary files a/run/natives/lwjgl2/libjinput-linux64.so and /dev/null differ diff --git a/run/natives/lwjgl2/libjinput-osx.jnilib b/run/natives/lwjgl2/libjinput-osx.jnilib deleted file mode 100644 index 59a3eab..0000000 Binary files a/run/natives/lwjgl2/libjinput-osx.jnilib and /dev/null differ diff --git a/run/natives/lwjgl2/liblwjgl.so b/run/natives/lwjgl2/liblwjgl.so deleted file mode 100644 index ba6e7f6..0000000 Binary files a/run/natives/lwjgl2/liblwjgl.so and /dev/null differ diff --git a/run/natives/lwjgl2/liblwjgl64.so b/run/natives/lwjgl2/liblwjgl64.so deleted file mode 100644 index 8ed0992..0000000 Binary files a/run/natives/lwjgl2/liblwjgl64.so and /dev/null differ diff --git a/run/natives/lwjgl2/libopenal.so b/run/natives/lwjgl2/libopenal.so deleted file mode 100644 index 0a3a619..0000000 Binary files a/run/natives/lwjgl2/libopenal.so and /dev/null differ diff --git a/run/natives/lwjgl2/libopenal64.so b/run/natives/lwjgl2/libopenal64.so deleted file mode 100644 index e0693c0..0000000 Binary files a/run/natives/lwjgl2/libopenal64.so and /dev/null differ diff --git a/shortcut b/shortcut deleted file mode 120000 index d473c46..0000000 --- a/shortcut +++ /dev/null @@ -1 +0,0 @@ -src/main/java/com/zivilon/cindercore/ \ No newline at end of file