From fe5332a54f36f046ab35e9def71d3bd9df76e4e8 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 24 Oct 2020 13:37:29 +0200 Subject: initial --- src/main/java/re/jag/mcqtt/Mcqtt.java | 17 +++++++++++++++ src/main/resources/assets/modid/icon.png | Bin 0 -> 453 bytes src/main/resources/fabric.mod.json | 36 +++++++++++++++++++++++++++++++ src/main/resources/mcqtt.mixins.json | 13 +++++++++++ 4 files changed, 66 insertions(+) create mode 100644 src/main/java/re/jag/mcqtt/Mcqtt.java create mode 100644 src/main/resources/assets/modid/icon.png create mode 100644 src/main/resources/fabric.mod.json create mode 100644 src/main/resources/mcqtt.mixins.json (limited to 'src/main') diff --git a/src/main/java/re/jag/mcqtt/Mcqtt.java b/src/main/java/re/jag/mcqtt/Mcqtt.java new file mode 100644 index 0000000..10678d8 --- /dev/null +++ b/src/main/java/re/jag/mcqtt/Mcqtt.java @@ -0,0 +1,17 @@ +package re.jag.mcqtt; + +import net.fabricmc.api.ModInitializer; + +import org.eclipse.paho.client.mqttv3.MqttClient; +import org.eclipse.paho.client.mqttv3.MqttException; + +public class Mcqtt implements ModInitializer { + @Override + public void onInitialize() { + System.out.println("Hello Fabric world!"); + + try { + MqttClient mqtt = new MqttClient("tcp://localhost", "mcserver", null); + } catch (MqttException e) {} + } +} diff --git a/src/main/resources/assets/modid/icon.png b/src/main/resources/assets/modid/icon.png new file mode 100644 index 0000000..047b91f Binary files /dev/null and b/src/main/resources/assets/modid/icon.png differ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json new file mode 100644 index 0000000..d02abeb --- /dev/null +++ b/src/main/resources/fabric.mod.json @@ -0,0 +1,36 @@ +{ + "schemaVersion": 1, + "id": "mcqtt", + "version": "${version}", + + "name": "McQTT", + "description": "", + "authors": [ + "kompetenzbolzen" + ], + "contact": { + "homepage": "https://fabricmc.net/", + "sources": "https://github.com/FabricMC/fabric-example-mod" + }, + + "license": "", + "icon": "assets/modid/icon.png", + + "environment": "server", + "entrypoints": { + "main": [ + "re.jag.mcqtt.Mcqtt" + ] + }, + "mixins": [ + "mcqtt.mixins.json" + ], + + "depends": { + "fabricloader": ">=0.7.4", + "minecraft": "1.16.x" + }, + "suggests": { + "flamingo": "*" + } +} diff --git a/src/main/resources/mcqtt.mixins.json b/src/main/resources/mcqtt.mixins.json new file mode 100644 index 0000000..14269ec --- /dev/null +++ b/src/main/resources/mcqtt.mixins.json @@ -0,0 +1,13 @@ +{ + "required": true, + "minVersion": "0.8", + "package": "re.jag.mcqtt.mixin", + "compatibilityLevel": "JAVA_8", + "mixins": [ + ], + "client": [ + ], + "injectors": { + "defaultRequire": 1 + } +} -- cgit v1.2.3