mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Serverside normal sparks
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user