]> git.lizzy.rs Git - BoundingBoxOutlineReloaded.git/blobdiff - src/main/java/com/irtimaled/bbor/client/interop/ClientInterop.java
Tidy up updating worldspawn
[BoundingBoxOutlineReloaded.git] / src / main / java / com / irtimaled / bbor / client / interop / ClientInterop.java
index 59c569a23f64bc3bbd212c84caea98136d07d053..5fc0f973a5e165a4a8177266928c690c7fa0f05a 100644 (file)
@@ -4,8 +4,10 @@ import com.irtimaled.bbor.client.PlayerCoords;
 import com.irtimaled.bbor.client.events.DisconnectedFromRemoteServer;
 import com.irtimaled.bbor.client.events.Render;
 import com.irtimaled.bbor.client.events.SeedCommandTyped;
+import com.irtimaled.bbor.client.events.UpdateWorldSpawnReceived;
 import com.irtimaled.bbor.common.EventBus;
 import net.minecraft.client.entity.EntityPlayerSP;
+import net.minecraft.util.math.BlockPos;
 
 public class ClientInterop {
     public static void disconnectedFromRemoteServer() {
@@ -39,4 +41,8 @@ public class ClientInterop {
             return null;
         }
     }
+
+    public static void updateWorldSpawnReceived(BlockPos blockPos) {
+        EventBus.publish(new UpdateWorldSpawnReceived(blockPos.getX(), blockPos.getZ()));
+    }
 }