Example #1
0
 public static void sendSetHomeAddressToServer(SGBaseTE te, String address) {
   NBTTagCompound nbt = new NBTTagCompound();
   nbt.setInteger("x", te.xCoord);
   nbt.setInteger("y", te.yCoord);
   nbt.setInteger("z", te.zCoord);
   nbt.setString("address", address);
   network.sendToServer(PacketType.SetHomeAddress, nbt);
 }
Example #2
0
 public static void sendConnectOrDisconnectToServer(SGBaseTE te, String address) {
   NBTTagCompound nbt = te.nbtWithCoords();
   nbt.setString("address", address);
   network.sendToServer(PacketType.ConnectOrDisconnect, nbt);
 }