diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-10-24 13:37:29 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-10-24 17:49:33 +0200 |
commit | fe5332a54f36f046ab35e9def71d3bd9df76e4e8 (patch) | |
tree | 5c7f2982bed2a6220c9edd6ad6e6c56d5ae6204c /src/main/java/re | |
download | mcqtt-fe5332a54f36f046ab35e9def71d3bd9df76e4e8.tar.gz |
initial
Diffstat (limited to 'src/main/java/re')
-rw-r--r-- | src/main/java/re/jag/mcqtt/Mcqtt.java | 17 |
1 files changed, 17 insertions, 0 deletions
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) {} + } +} |