public static void sendRemoveAspect( final EntityPlayer player, final TileEssentiaCellWorkbench workbench, final Aspect aspect) { Packet_S_EssentiaCellWorkbench packet = newPacket(player, MODE_REQUEST_REMOVE_ASPECT); // Set the aspect packet.arAspect = aspect; // Set the workbench packet.workbench = workbench; // Send it NetworkHandler.sendPacketToServer(packet); }
public static void sendReplaceAspect( final EntityPlayer player, final TileEssentiaCellWorkbench workbench, final Aspect originalAspect, final Aspect newAspect) { Packet_S_EssentiaCellWorkbench packet = newPacket(player, MODE_REQUEST_REPLACE_ASPECT); // Set the aspects packet.arAspect = originalAspect; packet.replaceAspect = newAspect; // Set the workbench packet.workbench = workbench; // Send it NetworkHandler.sendPacketToServer(packet); }