aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorAnthony Hilyard <anthony.hilyard@gmail.com>2021-10-24 11:46:40 -0700
committerAnthony Hilyard <anthony.hilyard@gmail.com>2021-10-24 11:46:40 -0700
commitec4c5aebf3b5b5af872c6b168c02bedd2bd5a9e3 (patch)
tree7f46aca691a09d9df9140505403a647827011df6 /src/main/resources
parent2b38fda32d059303bed929b7ae634efa4dffc706 (diff)
downloadIceberg-ec4c5aebf3b5b5af872c6b168c02bedd2bd5a9e3.tar.gz
Iceberg-ec4c5aebf3b5b5af872c6b168c02bedd2bd5a9e3.tar.bz2
Iceberg-ec4c5aebf3b5b5af872c6b168c02bedd2bd5a9e3.zip
Initial Fabric port.
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/META-INF/accesstransformer.cfg1
-rw-r--r--src/main/resources/META-INF/mods.toml27
-rw-r--r--src/main/resources/fabric.mod.json41
-rw-r--r--src/main/resources/iceberg.accesswidener3
-rw-r--r--src/main/resources/iceberg.mixins.json2
-rw-r--r--src/main/resources/pack.mcmeta7
6 files changed, 45 insertions, 36 deletions
diff --git a/src/main/resources/META-INF/accesstransformer.cfg b/src/main/resources/META-INF/accesstransformer.cfg
deleted file mode 100644
index b3edbd7..0000000
--- a/src/main/resources/META-INF/accesstransformer.cfg
+++ /dev/null
@@ -1 +0,0 @@
-public net.minecraft.client.gui.screens.inventory.tooltip.ClientTextTooltip f_169936_ # text \ No newline at end of file
diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml
deleted file mode 100644
index 7623938..0000000
--- a/src/main/resources/META-INF/mods.toml
+++ /dev/null
@@ -1,27 +0,0 @@
-modLoader="javafml"
-loaderVersion="[37,)"
-license="CC BY-NC-ND 4.0"
-
-[[mods]]
-modId="iceberg"
-version="${file.jarVersion}"
-displayName="Iceberg"
-displayURL="https://anthonyhilyard.com/"
-updateJSONURL="https://mc-curse-update-checker.herokuapp.com/520110"
-logoFile="icon.png"
-authors="Grend"
-description="A library containing events, helpers, and utilities to make modding easier."
-
-[[dependencies.iceberg]]
- modId="forge"
- mandatory=true
- versionRange="[37,)"
- ordering="NONE"
- side="BOTH"
-
-[[dependencies.iceberg]]
- modId="minecraft"
- mandatory=true
- versionRange="[1.17.1]"
- ordering="NONE"
- side="BOTH" \ No newline at end of file
diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json
new file mode 100644
index 0000000..0920998
--- /dev/null
+++ b/src/main/resources/fabric.mod.json
@@ -0,0 +1,41 @@
+{
+ "schemaVersion": 1,
+ "id": "iceberg",
+ "version": "${version}",
+
+ "name": "Iceberg",
+ "description": "A library containing events, helpers, and utilities to make modding easier.",
+ "authors": [ "Grend" ],
+ "contact": {
+ "homepage": "https://anthonyhilyard.com/",
+ "sources": "https://github.com/AHilyard/Iceberg",
+ "discord": "https://discord.gg/S5NQjbXPnb"
+ },
+
+ "license": "CC BY-NC-ND 4.0",
+ "icon": "icon.png",
+
+ "environment": "*",
+
+ "entrypoints": { },
+ "accessWidener": "iceberg.accesswidener",
+
+ "depends": {
+ "fabricloader": ">=0.11.3",
+ "fabric": "*",
+ "minecraft": "1.17.x",
+ "java": ">=16"
+ },
+ "custom": {
+ "modupdater": {
+ "strategy": "curseforge",
+ "projectID": 539382,
+ "strict": false
+ },
+ "modmenu": {
+ "links": {
+ "modmenu.discord": "https://discord.gg/S5NQjbXPnb"
+ }
+ }
+ }
+}
diff --git a/src/main/resources/iceberg.accesswidener b/src/main/resources/iceberg.accesswidener
new file mode 100644
index 0000000..144309a
--- /dev/null
+++ b/src/main/resources/iceberg.accesswidener
@@ -0,0 +1,3 @@
+accessWidener v1 named
+accessible field net/minecraft/client/gui/screens/inventory/tooltip/ClientTextTooltip text Lnet/minecraft/util/FormattedCharSequence;
+accessible field net/minecraft/client/gui/screens/inventory/AbstractContainerScreen hoveredSlot Lnet/minecraft/world/inventory/Slot; \ No newline at end of file
diff --git a/src/main/resources/iceberg.mixins.json b/src/main/resources/iceberg.mixins.json
index d81f759..82d2362 100644
--- a/src/main/resources/iceberg.mixins.json
+++ b/src/main/resources/iceberg.mixins.json
@@ -8,7 +8,7 @@
"PlayerAdvancementsMixin"
],
"server": [
- "ForgeEventFactoryMixin"
+ "ItemEntityMixin"
],
"client": [
"ScreenMixin"
diff --git a/src/main/resources/pack.mcmeta b/src/main/resources/pack.mcmeta
deleted file mode 100644
index 709504e..0000000
--- a/src/main/resources/pack.mcmeta
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "pack": {
- "description": "iceberg resources",
- "pack_format": 6,
- "_comment": "A pack_format of 6 requires json lang files and some texture changes from 1.16.2. Note: we require v6 pack meta for all mods."
- }
-}