Serverside normal sparks

This commit is contained in:
Vincent Lee committed 2016-06-10 20:31:34 -05:00
1 parent 5ac09b830d
commit c289edd825
3 files changed
+112 -81

No files matched your search

@@ -1,5 +1,6 @@
package vazkii.botania.common.network;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.util.math.BlockPos;
@@ -37,6 +38,10 @@ public final class PacketHandler {
}
}
public static void sendToNearby(World world, Entity e, IMessage toSend) {
sendToNearby(world, new BlockPos(e), toSend);
}
public static void sendTo(EntityPlayerMP playerMP, IMessage toSend) {
HANDLER.sendTo(toSend, playerMP);
}