mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
Start work on machines and fix some mistakes.
This commit is contained in:
1 parent
ec975567b2
commit
5f5e856ceb
30 files changed
+239
-199
No files matched your search
@@ -1,12 +1,13 @@
|
||||
package crazypants.enderio.network;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
||||
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
|
||||
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
|
||||
public class PacketHandler {
|
||||
public class PacketHandler
|
||||
{
|
||||
|
||||
public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel("smt");
|
||||
|
||||
@@ -16,4 +17,14 @@ public class PacketHandler {
|
||||
{
|
||||
return ID++;
|
||||
}
|
||||
|
||||
public static void sendToAllAround(IMessage message, TileEntity te, int range)
|
||||
{
|
||||
INSTANCE.sendToAllAround(message, new TargetPoint(te.getWorldObj().provider.dimensionId, te.xCoord, te.yCoord, te.zCoord, range));
|
||||
}
|
||||
|
||||
public static void sendToAllAround(IMessage message, TileEntity te)
|
||||
{
|
||||
sendToAllAround(message, te, 16);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user