summary refs log tree commit diff stats
path: root/src/main/java/ganarchy/friendcode/mixin/FriendCodeIntegratedServerExt.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ganarchy/friendcode/mixin/FriendCodeIntegratedServerExt.java')
-rw-r--r--src/main/java/ganarchy/friendcode/mixin/FriendCodeIntegratedServerExt.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/ganarchy/friendcode/mixin/FriendCodeIntegratedServerExt.java b/src/main/java/ganarchy/friendcode/mixin/FriendCodeIntegratedServerExt.java
new file mode 100644
index 0000000..49d3b3f
--- /dev/null
+++ b/src/main/java/ganarchy/friendcode/mixin/FriendCodeIntegratedServerExt.java
@@ -0,0 +1,17 @@
+package ganarchy.friendcode.mixin;
+
+import net.minecraft.client.network.LanServerPinger;
+import net.minecraft.server.integrated.IntegratedServer;
+import net.minecraft.world.GameMode;
+import org.spongepowered.asm.mixin.Mixin;
+import org.spongepowered.asm.mixin.gen.Accessor;
+
+@Mixin(IntegratedServer.class)
+public interface FriendCodeIntegratedServerExt {
+    @Accessor("forcedGameMode")
+    void forcedGameMode(GameMode gameMode);
+    @Accessor("lanPort")
+    void lanPort(int port);
+    @Accessor("lanPinger")
+    void lanPinger(LanServerPinger lanPinger);
+}