package net.hexogendev.hexogen.api.network;

import net.hexogendev.hexogen.api.Server;
import net.hexogendev.hexogen.api.entity.alive.player.Player;
import net.hexogendev.hexogen.api.world.Position;

public interface NetworkServer {

	public Server getServer();

	public Object getProtocolServer();

	public int getPort();

	public String getHostAddress();

	public void sendPacketForAll(IPacket packet);

	public void sendPacketDistance(Position pos, IPacket packet, int radius);

	public void sendPacketForAllExpect(IPacket packet, Player expect);

	public void sendPacketDistanceExpect(Position pos, IPacket packet, int radius, Player expect);

	public void shutdown();

}

@@ -191,16 +191,63 @@
 osition;
+%0Aimport net.hexogendev.hexogen.api.world.World;
 %0A%0Apublic
@@ -473,31 +473,82 @@
 cket
-Distance(Position pos, 
+ForAll(World world, IPacket packet);%0A%0A%09public void sendPacketForAllExpect(
 IPac
@@ -559,26 +559,29 @@
 packet, 
-int radius
+Player expect
 );%0A%0A%09pub
@@ -604,32 +604,45 @@
 ketForAllExpect(
+World world, 
 IPacket packet, 
@@ -650,32 +650,108 @@
 layer expect);%0A%0A
+%09public void sendPacketDistance(Position pos, IPacket packet, int radius);%0A%0A
 %09public void sen

Add sendPacket for world players